Part Number Hot Search : 
TPDV625 PIC16F87 00002 LM393AM D74ALVC1 DS9075 N2800 EL817B
Product Description
Full Text Search
 

To Download ADE7754 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 PRELIMINARY TECHNICAL DATA
a
Preliminary Technical Data
Poly-phase Multi-Function Energy Metering IC with Serial Port ADE7754*
The ADE7754 provides different solutions to measure Active and Apparent Energy from the six analog inputs thus enabling the use of the ADE7754 in various Power meter services as 3-phase 4-wire, 3-phase 3-wire but also 4-wire delta. In addition to RMS calculation, Real and Apparent power informations, the ADE7754 provides system calibration features for each phase, i.e., channel offset correction, phase calibration and gain calibration. The CF logic output gives instantaneous real power information. The ADE7754 has a waveform sample register which enables access to ADC outputs. The part also incorporates a detection circuit for short duration low or high voltage variations. The voltage threshold levels and the duration (no. of half line cycles) of the variation are user programmable. A zero crossing detection is synchronized which the zero crossing point of the line voltage of each of the three phases. This information is used to measure each line's Period. It is also used internally to the chip in the Line Active Energy and Line Apparent Energy accumulation modes. This permits faster and more accurate calibration of the power calculations. This signal is also useful for synchronization of relay switching. Data is read from the ADE7754 via the SPI serial interface. The interrupt request output (IRQ) is an open drain, active low logic output. The IRQ output will go active low when one or more interrupt events have occurred in the ADE7754. A status register will indicate the nature of the interrupt. The ADE7754 is available in a 24-lead SOIC package.
RESET
17
FEATURES High Accuracy, supports IEC 687/61036 Compatible with 3-phase/3-wire, 3-phase/4-wire and any type of 3-phase services Less than 0.1% error in Active Power Measurement over a dynamic range of 1000 to 1 The ADE7754 supplies Active Energy, Apparent Energy, Voltage rms, Current rms and Sampled Waveform Data. Digital Power, Phase & Input Offset Calibration. An On-Chip temperature sensor (3C typ. after calibration) On-Chip user Programmable thresholds for line voltage SAG and overdrive detections. A SPI compatible Serial Interface with Interrupt Request line (IRQ). A pulse output with programmable frequency Proprietary ADCs and DSP provide high accuracy over large variations in environmental conditions and time. Reference 2.4V8% (Drift 30 ppm/C typical) with external overdrive capability Single 5V Supply, Low power (80mW typical) GENERAL DESCRIPTION
The ADE7754 is a high accuracy Poly-phase electrical energy measurement IC with a serial interface and a pulse output. The ADE7754 incorporates second order sigmadelta ADCs, reference circuitry, temperature sensor, and all the signal processing required to perform Active, Apparent Energy measurements and rms calculation.
FUNCTIONAL BLOCK DIAGRAM
AVDD
4
AVGAIN
AVRMSOS
X2
AIRMSOS
AVAG
Power Supply Monitor
ADE7754
PGA1
AAPGAIN
X2
LPF2
IAP 5 IAN 6 VAP 16
PGA2
ADC
HPF
AAPOS
BVRMSOS
|X|
AWG
ADC
APHCAL
BVGAIN
ABS
X2
BIRMSOS
BVAG
PGA1
BAPGAIN
X2
LPF2
CVRMSOS
BAPOS
CFNUM
IBP 7 IBN 8 VBP 15
PGA2
ADC
HPF
|X|
BWG
DFC
CFDEN
1
CF
ADC
BPHCAL
X2
CVGAIN
CIRMSOS
ABS
3
2
CVAG
19
PGA1 ICP ICN 10 PGA2 VCP 14 VN 13
2.5V REF
11
CAPGAIN
X2
LPF2
20
DVDD DGND CLKIN CLKOUT
ADC
HPF
CAPOS
|X|
CWG
TEMP SENSOR
WDIV
VADIV
ADC
CPHCAL
ABS
4k
12
ADC
ADE7754 REGISTERS & SERIAL INTERFACE
* Patents pending.
REV. PrG 01/03
22
24
23
21
18
AGND
REF IN/OUT
DIN DOUT SCLK CS IRQ
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781/329-4700 World Wide Web Site: http://www.analog.com Fax: 781/326-8703 (c) Analog Devices, Inc., 2003
PRELIMINARY TECHNICAL DATA
ADE7754-SPECIFICATIONS
Parameters ACCURACY Active Power Measurement Error Phase Error Between Channels (PF=0.8 capacitive) (PF=0.5 inductive) AC Power Supply Rejection1 Output Frequency Variation DC Power Supply Rejection1 Output Frequency Variation ANALOG INPUTS Maximum Signal Levels Input Impedance (DC) Bandwidth (-3dB) ADC Offset Error1 Gain Error 1 Gain Error Match1 REFERENCE INPUT REF IN/OUT Input Voltage Range Input Impedance Input Capacitance TEMPERATURE SENSOR ON-CHIP REFERENCE Reference Error Temperature Coefficient CLKIN Input Clock Frequency LOGIC INPUTS RESET, DIN, SCLK CLKIN and CS Input High Voltage, VINH Input Low Voltage, VINL Input Current, IIN Input Capacitance, C IN LOGIC OUTPUTS CF, IRQ, DOUT and CLKOUT Output High Voltage, VOH Output Low Voltage, VOL POWER SUPPLY AVDD DVDD AIDD DIDD 0.1 0.05 0.05 0.01 0.01 500 400 14 25 8 3 2.6 2.2 4 10 2 200 30 10 Units % typ max max % typ % typ
(AVDD = DVDD = 5V5%, AGND = DGND = 0V, On-Chip Reference, CLKIN=10MHz, TMIN to TMAX = -40C to +85C)
Test Conditions/Comments Over a dynamic range of 1000 to 1 Phase Lead 37 Phase Lag 60 IAP/N=IBP/N=ICP/N= 100mV rms IAP/N=IBP/N=ICP/N= 100mV rms Differential input: V AP-V N, V BP-V N, V CP-V N I AP-I AN , I BP-I BN, I CP-I CN Uncalibrated error, see Terminology for detail External 2.5V reference External 2.5V reference 2.4V +8% 2.4V -8%
mV peak max k min kHz typ mV max % typ % typ V max V min kW min pF max C mV max ppm/C typ MHz typ
Calibrated DC offset
2.4 0.8 3 10
V min V max mA max pF max
DVDD=5V 5% DVDD=5V 5% Typical 10nA, Vin=0V to DVDD
4 1
V min V max
DVDD=5V 5% DVDD=5V 5% For specified performance 5V - 5% 5V +5% 5V - 5% 5V +5%
4.75 5.25 4.75 5.25 7 10
V min V max V min V max mA max mA max
NOTES: 1. See Terminology section for explanation of specifications. 2. See plots in Typical Performance Graph. 3. Specification subject to change without notice. MODEL
ORDERING GUIDE
PACKAGE OPTION* RW-24 RW-24 in Reel ADE7754 Evaluation Board
ADE7754AR ADE7754ARRL EVAL-ADE7754EB REV. PrG 01/03 -2-
PRELIMINARY TECHNICAL DATA ADE7754 ADE7754 TIMING CHARACTERISTICS1,2
Parameter Write timing t1 t2 t3 t4 t5 t6 t7 t8 Read timing t95 t10 t113 t124 t134 50 50 50 10 5 400 50 100 4 50 30 100 10 100 10 Units ns ns ns ns ns ns ns ns (min) (min) (min) (min) (min) (min) (min) (min)
(AVDD = DVDD = 5V 5%, AGND = DGND = 0V, On-Chip Reference, CLKIN = 10MHz XTAL, TMIN to TMAX = -40C to +85C)
Test Conditions/Comments CS falling edge to first SCLK falling edge SCLK logic high pulse width SCLK logic low pulse width Valid Data Set up time before falling edge of SCLK Data Hold time after SCLK falling edge Minimum time between the end of data byte transfers. Minimum time between byte transfers during a serial write. CS Hold time after SCLK falling edge. Minimum time between read command (i.e. a write to Communication Register) and data read. Minimum time between data byte transfers during a multibyte read. Data access time after SCLK rising edge following a write to the Communications Register Bus relinquish time after falling edge of SCLK. Bus relinquish time after rising edge of CS.
s (min) ns (min) ns (min) ns ns ns ns (max) (min) (max) (min)
NOTES Sample tested during initial release and after any redesign or process change that may affect this parameter. All input signals are specified with tr = tf = 5ns (10% to 90%) and timed from a voltage level of 1.6V. 2 See timing diagram below and Serial Interface section of this data sheet. 3 Measured with the load circuit in Figure 1 and defined as the time required for the output to cross 0.8V or 2.4V. 4 Derived from the measured time taken by the data outputs to change 0.5V when loaded with the circuit in Figure 1. The measured number is then extrapolated back to remove the effects of charging or discharging the 50pF capacitor. This means that the time quoted in the timing characteristics is the true bus relinquish time of the part and is independent of the bus loading. 5 Minimum time between read command and data read for all registers except WAVFORM register. For WAVFORM register t 9 =500ns min
1
IOL 200 A TO OUTPUT PIN
+2.1V CL 50pF 1.6 mA IOH
Figure 1 - Load Circuit for Timing Specifications
Serial Write Timing
t8
CS
t1 t2 t3 t7 t4 t5 DB7 DB0 DB7 DB0 t7 t6
SCLK DIN
1 0 A5 A4 A3 A2 A1 A0
Command Byte
Most Significant Byte
Least Significant Byte
Serial Read Timing
CS
t1 t9 t10 t14
SCLK DIN DOUT
Command Byte
0
0
A5 A4 A3 A2 A1 A0
t11 DB7 t12 DB0 DB7 t13
DB0
Most Significant Byte
Least Significant Byte
REV. PrG 01/03
-3-
PRELIMINARY TECHNICAL DATA ADE7754
ABSOLUTE MAXIMUM RATINGS*
(T A = +25C unless otherwise noted)
AVDD to AGND . . . . . . . . . . . . . . . . . . . . . -0.3V to +7V DV DD to DGND . . . . . . . . . . . . . . . . . . . . -0.3V to +7V DV DD to AV DD . . . . . . . . . . . . . . . . . . . . . -0.3V to +0.3V Analog Input Voltage to AGND I AP ,I AN ,I BP ,I BN ,I CP ,I CN ,V AP ,V BP ,V CP ,V N . -6V to +6V Reference Input Voltage to AGND -0.3V to AVDD+0.3V Digital Input Voltage to DGND . -0.3V to DVDD+0.3V Digital Output Voltage to DGND -0.3V to DVDD+0.3V Operating Temperature Range Industrial . . . . . . . . . . . . . . . . . . . . . . . -40C to +85C Storage Temperature Range . . . . . . . . -65C to +150C Junction Temperature . . . . . . . . . . . . . . . . . . . . . . +150C
24-Lead SOIC, Power Dissipation . . . . . . . . . TBD mW JA Thermal Impedance . . . . . . . . . . . . . . . . . . . 53C/W Lead Temperature, Soldering Vapor Phase (60 sec) . . . . . . . . . . . . . . . . . . . +215C Infrared (15 sec) . . . . . . . . . . . . . . . . . . . . . . +220C
*Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those listed in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
CAUTION ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although the ADE7754 features proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high-energy electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality.
WARNING!
ESD SENSITIVE DEVICE
Terminology
MEASUREMENT ERROR ADC OFFSET ERROR
The error associated with the energy measurement made by the ADE7754 is defined by the following formula:
Percentage Error = Energy registered by ADE 7754 - True Energy x 100% True Energy
PHASE ERROR BETWEEN CHANNELS
This refers to the DC offset associated with the analog inputs to the ADCs. It means that with the analog inputs connected to AGND the ADCs still see a dc analog input signal. The magnitude of the offset depends on the gain and input range selection - see characteristic curves. However, when HPFs are switched on the offset is removed from the current channels and the power calculation is not affected by this offset.
GAIN ERROR
The HPF (High Pass Filter) in the current channel has a phase lead response. To offset this phase response and equalize the phase response between channels a phase correction network is also placed in the current channel. The phase correction network ensures a phase match between the current channels and voltage channels to within 0.1 over a range of 45Hz to 65Hz and 0.2 over a range 40Hz to 1kHz. This phase mismatch between the voltage and the current channels can be further reduced with the phase calibration register in each phase.
POWER SUPPLY REJECTION
The gain error in the ADE7754 ADCs, is defined as the difference between the measured ADC output code (minus the offset) and the ideal output code - see Current Channel ADC & Voltage Channel ADC. The difference is expressed as a percentage of the ideal code.
GAIN ERROR MATCH
The Gain Error Match is defined as the gain error (minus the offset) obtained when switching between a gain of 1, 2 or 4. It is expressed as a percentage of the output ADC code obtained under a gain of 1.
This quantifies the ADE7754 measurement error as a percentage of reading when the power supplies are varied. For the AC PSR measurement a reading at nominal supplies (5V) is taken. A second reading is obtained with the same input signal levels when an ac (175mVrms/100Hz) signal is introduced onto the supplies. Any error introduced by this ac signal is expressed as a percentage of reading--see Measurement Error definition above. For the DC PSR measurement a reading at nominal supplies (5V) is taken. A second reading is obtained with the same input signal levels when the power supplies are varied 5%. Any error introduced is again expressed as a percentage of reading. -4- REV. PrG 01/03
PRELIMINARY TECHNICAL DATA Characteristic Curves- ADE7754
TBD
TPC 1. Real Power Error as a percent of reading with Gain = 1 and Internal reference (WYE connection)
TBD
TPC 2. Real Power Error as a percent of reading over Power Factor with Internal reference (DELTA connection)
TBD
TPC 3. Real Power Error as a percent of reading over Power Factor with Internal reference (Gain = 1)
TBD
TPC 4. Real Power Error as a percent of reading over Power Factor with Internal reference (Gain = 4)
TBD
TPC 5. Current rms Error as a percent of reading with Internal reference (Gain = 1)
TBD
TPC 6. Voltage rms Error as a percent of reading with Internal reference (Gain = 1)
REV. PrG 01/03
-5-
PRELIMINARY TECHNICAL DATA ADE7754
TBD
TPC 7. Real Power Error as a percent of reading over Power Factor with External reference (Gain = 1)
TBD
TPC 8. Voltage rms Error as a percent of reading with External reference (Gain = 1)
TBD
TPC 9. Real Power Error as a percent of reading over input frequency with Internal reference
TBD
TPC 10. Real Power Error as a percent of reading over power supply with External reference (Gain = 1)
TBD
TPC 11. Real Power Error as a percent of reading over power supply with Internal reference (Gain = 1)
TBD
TPC 12. Test circuit for performances curves
-6-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
TBD
TPC 13. Current Channel offset distribution (Gain = 1)
TBD
TPC 14. Current Channel offset distribution (Gain = 4)
REV. PrG 01/03
-7-
PRELIMINARY TECHNICAL DATA ADE7754
PIN FUNCTION DESCRIPTION
Pin No. 1
MNEMONIC CF
DESCRIPTION Calibration Frequency logic output. The CF logic output gives Active Power information. This output is intended to be used for operational and calibration purposes. The full-scale output frequency can be scaled by writing to the CFNUM and CFDEN registers--see Energy To Frequency Conversion. This provides the ground reference for the digital circuitry in the ADE7754, i.e. multiplier, filters and digital-to-frequency converter. Because the digital return currents in the ADE7754 are small, it is acceptable to connect this pin to the analog ground plane of the whole system. However high bus capacitance on the DOUT pin may result in noisy digital current which could affect performance. Digital power supply. This pin provides the supply voltage for the digital circuitry in the ADE7754. The supply voltage should be maintained at 5V 5% for specified operation. This pin should be decoupled to DGND with a 10F capacitor in parallel with a ceramic 100nF capacitor. Analog power supply. This pin provides the supply voltage for the analog circuitry in the ADE7754. The supply should be maintained at 5V 5% for specified operation. Every effort should be made to minimize power supply ripple and noise at this pin by the use of proper decoupling. The typical performance graphs in this data sheet show the power supply rejection performance. This pin should be decoupled to AGND with a 10F capacitor in parallel with a ceramic 100nF capacitor. Analog inputs for current channel. This channel is intended for use with the current transducer and is referenced in this document as the current channel. These inputs are fully differential voltage inputs with maximum differential input signal levels of 0.5V, 0.25V and 0.125V, depending on the gain selections of the internal PGA -See Analog Inputs. All inputs have internal ESD protection circuitry, and in addition an overvoltage of 6V can be sustained on these inputs without risk of permanent damage. This pin provides the ground reference for the analog circuitry in the ADE7754, i.e. ADCs, temperature sensor, and reference. This pin should be tied to the analog ground plane or the quietest ground reference in the system. This quiet ground reference should be used for all analog circuitry, e.g. anti aliasing filters, current and voltage transducers etc. In order to keep ground noise around the ADE7754 to a minimum, the quiet ground plane should only connected to the digital ground plane at one point. It is acceptable to place the entire device on the analog ground plane. This pin provides access to the on-chip voltage reference. The on-chip reference has a nominal value of 2.4V 8% and a typical temperature coefficient of 30ppm/C. An external reference source may also be connected at this pin. In either case this pin should be decoupled to AGND with a 1F ceramic capacitor. Analog inputs for the voltage channel. This channel is intended for use with the voltage transducer and is referenced as the voltage channel in this document. These inputs are single-ended voltage inputs with maximum signal level of 0.5V with respect to VN for specified operation. These inputs are voltage inputs with maximum differential input signal levels of 0.5V, 0.25V and 0.125V, depending on the gain selections of the internal PGA - see Analog Inputs. All inputs have internal ESD protection circuitry, and in addition an over voltage of 6V can be sustained on these inputs without risk of permanent damage.
2
DGND
3
D V DD
4
AVDD
5,6; 7,8; 9,10
IAP, IAN; IBP, IBN; ICP, ICN
11
AGND
12
REFIN/OUT
13, 14 15, 16
V N, V CP, VBP, VAP
17 18
RESET IRQ
Reset pin for the ADE7754. A logic low on this pin will hold the ADCs and digital circuitry (including the Serial Interface) in a reset condition. Interrupt Request Output. This is an active low open drain logic output. Maskable interrupts include: Active Energy Register at half level, Apparent Energy Register at half level, and waveform sampling up to 26kSPS. See ADE7754 Interrupts.
-8-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Pin No. 19 MNEMONIC CLKIN DESCRIPTION Master clock for ADCs and digital signal processing. An external clock can be provided at this logic input. Alternatively, a parallel resonant AT crystal can be connected across CLKIN and CLKOUT to provide a clock source for the ADE7754. The clock frequency for specified operation is 10MHz. Ceramic load capacitors of between 22pF and 33pF should be used with the gate oscillator circuit. Refer to crystal manufacturers data sheet for load capacitance requirements A crystal can be connected across this pin and CLKIN as described above to provide a clock source for the ADE7754. The CLKOUT pin can drive one CMOS load when either an external clock is supplied at CLKIN or a crystal is being used. Chip Select. Part of the four wire Serial Interface. This active low logic input allows the ADE7754 to share the serial bus with several other devices. See ADE7754 Serial Interface. Data Input for the Serial Interface. Data is shifted in at this pin on the falling edge of SCLK--see ADE7754 Serial Interface. Serial Clock Input for the synchronous serial interface. All Serial data transfers are synchronized to this clock--see ADE7754 Serial Interface. The SCLK has a Schmidt-trigger Input for use with a clock source which has a slow edge transition time, e.g., opto-isolator outputs etc. Data Output for the Serial Interface. Data is shifted out at this pin on the rising edge of SCLK. This logic output is normally in a high impedance state unless it is driving data onto the serial data bus--see ADE7754 Serial Interface.
20
CLKOUT
21
CS
.
22 23
DIN SCLK
24
DOUT
PIN CONFIGURATION
SOIC Package
CF 1 DGND 2 DVDD
3
24 DOUT 23 SCLK 22 DIN 21 CS
AVDD 4 IAP
5
ADE7754
20 CLKOUT
IAN 6
19 CLKIN TOP VIEW IBP 7 (Not to Scale) 18 IRQ 17 RESET 16 VAP 15 VBP 14 VCP 13 VN
IBN 8 ICP 9 ICN 10 AGND 11 REFIn/Out 12
REV. PrG 01/03
-9-
PRELIMINARY TECHNICAL DATA ADE7754
POWER SUPPLY MONITOR ANALOG INPUTS
The ADE7754 also contains an on-chip power supply monitor. The Analog Supply (AVDD) is continuously monitored by the ADE7754. If the supply is less than 4V 5% then the ADE7754 will go in an inactive state, i.e. no energy will be accumulated when the supply voltage is below 4V. This is useful to ensure correct device operation at power up and during power down. The power supply monitor has built-in hysteresis and filtering. This gives a high degree of immunity to false triggering due to noisy supplies.
AVDD 5V 4V
0V
Time
ADE7754 Power-on
The ADE7754 has a total of six analog inputs, dividable into two channels: current channel and voltage channel. The current channel consists of three pairs of fully-differential voltage inputs, namely (IAP, IAN; IBP, IBN; ICP, ICN). The fully differential voltage input pairs have a maximum differential voltage of 0.5V. The voltage channel has three single-ended voltage inputs VAP, VBP, and VCP. These single-ended voltage inputs have a maximum input voltage of 0.5V with respect to VN. Both the current channel and the voltage channel have a PGA (Programmable Gain Amplifier) with possible gain selections of 1, 2, or 4. The same gain is applied to all the inputs of each channel. The gain selections are made by writing to the Gain register. Bits 0 to 1 select the gain for the PGA in the fully-differential current channel. The gain selection for the PGA in the singleended voltage channel is made via bits 5 to 6. Figure 3 shows how a gain selection for the current channel is made using the Gain register.
GAIN[7:0]
Inactive
Active
Inactive
RESET flag in the Interrupt Status register
Read RSTATUS register
IAP, IBP, ICP
Gain (k) selection
Figure 2 - On chip Power supply monitoring
The RESET bit in the Interrupt Status register is set to logic one when AVDD drops below 4V 5%. The RESET flag is always masked by the Interrupt Mask register and cannot cause the IRQ pin to go low. The Power supply and decoupling for the part should be such that the ripple at AVDD does not exceed 5V 5% as specified for normal operation.
Vin
+ -
k*Vin
IAN, IBN, ICN
Figure 3-- PGA in current channel
Figure 4 shows how the gain settings in PGA 1 (current channel) and PGA 2 (voltage channel) are selected by various bits in the Gain register. The no load threshold and sum of the absolute value can also be selected in the Gain register see Table X.
GAIN REGISTER* current & voltage Channel PGA Control 7 6 5 4 3 2 1 0
0
RESERVED=0
0
0
0
0
0
0
0
ADDR: 18h
RESERVED =0 No ABS Load
PGA 2 Gain Select 00 = x1 01 = x2 10 = x4
PGA 1 Gain Select 00 = x1 01 = x2 10 = x4
*Register contents show power on defaults
Figure 4 -- ADE7754 Analog Gain register
-10-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
ADE7754 ANALOG TO DIGITAL CONVERSION
Antialias filter (RC) Digital filter Shaped
Signal
The analog-to-digital conversion in the ADE7754 is carried out using second order sigma-delta ADCs. The block diagram in Figure 5 shows a first order (for simplicity) sigma-delta ADC. The converter is made up of two parts, first the sigma-delta modulator and secondly the digital low pass filter.
MCLK/12
Noise
Sampling Frequency
Noise
0
2kHz
417kHz
833kHz
Frequency (Hz)
Signal
Analog Low Pass Filter
INTEGRATOR
Digital Low Pass Filter +
LATCHED COMPARATOR
+
R C
High resolution output from Digital LPF
-
VREF
-
1
24
Noise
....10100101......
1-Bit DAC
0
2kHz
417kHz
833kHz
Frequency (Hz)
Figure 5 - First order Sigma-Delta (-) ADC
Figure 6- Noise reduction due to Oversampling & Noise shaping in the analog modulator
Antialias Filter
A sigma-delta modulator converts the input signal into a continuous serial stream of 1's and 0's at a rate determined by the sampling clock. In the ADE7754 the sampling clock is equal to CLKIN/12. The 1-bit DAC in the feedback loop is driven by the serial data stream. The DAC output is subtracted from the input signal. If the loop gain is high enough the average value of the DAC output (and therefore the bit stream) will approach that of the input signal level. For any given input value in a single sampling interval, the data from the 1-bit ADC is virtually meaningless. Only when a large number of samples are averaged, will a meaningful result be obtained. This averaging is carried out in the second part of the ADC, the digital low pass filter. By averaging a large number of bits from the modulator the low pass filter can produce 24-bit data words which are proportional to the input signal level. The sigma-delta converter uses two techniques to achieve high resolution from what is essentially a 1-bit conversion technique. The first is oversampling. By over sampling we mean that the signal is sampled at a rate (frequency) which is many times higher than the bandwidth of interest. For example the sampling rate in the ADE7754 is CLKIN/12 (833kHz) and the band of interest is 40Hz to 2kHz. Oversampling has the effect of spreading the quantization noise (noise due to sampling) over a wider bandwidth. With the noise spread more thinly over a wider bandwidth, the quantization noise in the band of interest is lowered--see Figure 6. However oversampling alone is not an efficient enough method to improve the signal to noise ratio (SNR) in the band of interest. For example, an oversampling ratio of 4 is required just to increase the SNR by only 6dB (1-Bit). To keep the oversampling ratio at a reasonable level, it is possible to shape the quantization noise so that the majority of the noise lies at the higher frequencies. This is what happens in the sigma-delta modulator, the noise is shaped by the integrator which has a high pass type response for the quantization noise. The result is that most of the noise is at the higher frequencies where it can be removed by the digital low pass filter. This noise shaping is also shown in Figure 6.
Figure 5 also shows an analog low pass filter (RC) on the input to the modulator. This filter is present to prevent aliasing. Aliasing is an artifact of all sampled systems. Basically it means that frequency components in the input signal to the ADC which are higher than half the sampling rate of the ADC will appear in the sampled signal at a frequency below half the sampling rate. Figure 7 illustrates the effect, frequency components (arrows shown in black) above half the sampling frequency (also know as the Nyquist frequency), i.e., 417kHz get imaged or folded back down below 417kHz (arrows shown in grey). This will happen with all ADCs no matter what the architecture. In the example shown it can be seen that only frequencies near the sampling frequency, i.e., 833kHz, will move into the band of interest for metering, i.e, 40Hz - 2kHz. This fact allows us to use a very simple LPF (Low Pass Filter) to attenuate these high frequencies (near 900kHz) and so prevent distortion in the band of interest. A simple RC filter (single pole) with a corner frequency of 10kHz produces an attenuation of approximately 40dBs at 833kHz--see Figure 7. This is sufficient to eliminate the effects of aliasing.
Aliasing Effects
Sampling Frequency Image frequencies
0
2kHz
417kHz Frequency (Hz)
833kHz
Figure 7- ADC and signal processing in current channel or voltage channel
REV. PrG 01/03
-11-
PRELIMINARY TECHNICAL DATA ADE7754
CURRENT CHANNEL ADC Current channel Sampling
Figure 8 shows the ADC and signal processing chain for the input IA of the current channels (same for IB and IC). In waveform sampling mode the ADC outputs are signed 2's Complement 24-bit data word at a maximum of 26.0kSPS (kilo Samples Per Second). The output of the ADC can be scaled by 50% by using the APGAINs register. While the ADC outputs are 24-bit 2's complement value the maximum full-scale positive value from the ADC is limited to 400000h (+4,194,304d). The maximum full-scale negative value is limited to C00000h (-4,194,304d). If the analog inputs are over-ranged, the ADC output code clamps at these values. With the specified full scale analog input signal of 0.5V, the ADC produces an output code between D70A3Eh (2,684,354) and 28F5C2h (+2,684,354). This is illustrated in Figure 8. The diagram in Figure 8 shows a full-scale voltage signal being applied to the differential inputs IAP and IAN.
Current channel ADC Gain Adjust
The waveform samples of the current channel inputs may also be routed to the WAVEFORM register (WAVMODE register to select the speed and the phase) to be read by the system master (MCU). The Active Energy and Apparent Energy calculation will remain uninterrupted during waveform sampling. When in waveform sample mode, one of four output sample rates may be chosen by using bits 3 and 4 of the WAVMode register (DTRT[1:0] mnemonic). The output sample rate may be 26.0kSPS, 13.0kSPS, 6.5kSPS or 3.3kSPS--see WAVMode register. By setting the WSMP bit in the Interrupt Mask register to logic one, the interrupt request output IRQ will go active low when a sample is available. The timing is shown in Figure 9. The 24-bit waveform samples are transferred from the ADE7754 one byte (8-bits) at a time, with the most significant byte shifted out first.
IRQ SCLK Read from WAVEFORM DIN DOUT
00 09 Hex SGN
The ADC gain in each phase of the Current Channel can be adjusted by using the multiplier and Active Power Gain register (AAPGAIN[11:0], BAPGAIN and CAPGAIN). The gain of the ADC is adjusted by writing a 2's complement 12-bit word to the Active Power Gain register. Below is the expression that shows how the gain adjustment is related to the contents of the Active Power Gain register.
AAPGAIN Code = ADC x 1 + 212
Current channel DATA - 24 bits
Figure 9 - Waveform sampling current channel
The interrupt request output IRQ stays low until the interrupt routine reads the Reset Status register - see ADE7754 Interrupt. Note: If the WSMP bit in the interrupt MASK register is not set to logic one, no data is available in the Waveform register.
For example when 7FFh is written to the Active Power Gain register the ADC output is scaled up by 50%. 7FFh = 2047d, 2047/212 = 0.5. Similarly, 800h = -2047 Dec (signed 2's Complement) and ADC output is scaled by -50%. These two examples are illustrated graphically in Figure 8.
REFERENCE IAP Vin IAN Vin 100% FS 0.5 V / GAIN1 0V 400000h 28F5C2h Analog Input Range 000000h D70A3Eh C00000h ADC Output word Range - 100% FS + 100% FS x1, x2, x4 GAIN[1:0] 1 PGA1 MULTIPLIER 1 Sinc3 Digital LPF 24
CURRENT RMS CALCULATION HPF WAVEFORM SAMPLE REGISTER ACTIVE AND REACTIVE POWER CALCULATION
ADC
12 800Hex - 7FFHex AAPGAIN[11:0]
Channel 1 3D70A3h 28F5C2h 147AE1h 00000h EB851Fh D70A3Eh C28F5Dh + 150% FS + 100% FS + 50% FS AAPGAIN[11:0] - 50% FS - 100% FS 000h 7FFh 800h - 150% FS
Figure 8 - ADC and signal processing in current channel
-12-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
VOLTAGE CHANNEL ADC
Figure 10 shows the ADC and signal processing chain for the Input VA in voltage channel (same for VB and VC).
x1, x2, x4 VAP VA VN VA LPF Output word Range 27E9h GAIN[6:5] 1 -100% to +100% FS LPF1 16 TO ACTIVE & REACTIVE ENERGY CALCULATION
ADC
TO VOLTAGE RMS AND WAVEFORM SAMPLING
0V
0.5V GAIN 60Hz
60Hz D817h
Analog Input Range
2838h
50Hz D7C8h
Note LPF1 does not affect the power calculation since it is used only in the Waveform sample mode. When in waveform sample mode, one of four output sample rates can be chosen by using bits 3 and 4 of the WAVMode register. The available output sample rates are 26.0kSPS, 13.5kSPS, 6.5kSPS or 3.3kSPS. The interrupt request output IRQ signals a new sample availability by going active low. The voltage waveform register is a 2-complement 16-bit register. As the Waveform register is a 24-bit signed register, the waveform data from the voltage input is located in the 16 LSB of the Waveform register. The sign of the 16-bit voltage input value is not extended to the upper byte of the waveform register. The upper byte is instead filled with zeros. 24-bit waveform samples are transferred from the ADE7754 one byte (8-bits) at a time, with the most significant byte shifted out first. The timing is the same as that for the current channels and is shown in Figure 9.
ZERO CROSSING DETECTION
Figure 10 - ADC and signal processing in voltage channel
For Energy measurements, the output of the ADC (1 bit) is passed directly to the multiplier and is not filtered. This solution avoids a wide bits multiplier and does not affect the accuracy of the measurement. A HPF is not required to remove any DC offset since it is only required to remove the offset from one channel to eliminate errors in the Power calculation. In the voltage channel, the samples may also be routed to the WFORM register (WAVMODE to select VA, VB or VC and sampling frequency). However before being passed to the Waveform register, the ADC output is passed through a single pole, low pass filter with a cutoff frequency of 260Hz. The plots in Figure 11 show the magnitude and phase response of this filter. The filter output code of any inputs of the voltage channel swings between D70Bh (-10,485d) and 28F5h (+10,485d) for full scale sinewave inputs. This has the effect of attenuating the signal. For example if the line frequency is 60Hz, then the signal at the output of LPF1 will be attenuated by 3%.
H( f ) = 1 1 + 60Hz 260 Hz
0
The ADE7754 has rising edge zero crossing detection circuits for each of voltage channels (VAP , VBP, or V CP ). Figure 12 shows how the zero cross signal is generated from the output of the ADC of the voltage channel.
REFERENCE x1, x2, x4
VAP, VBP, VCP
GAIN[6:5] 1 PGA
TO MULTIPLIER -100% to +100% FS
V
VN
ADC
ZERO CROSS LPF1 f-3dB = 260Hz 13 degrees @ 60Hz 1.0 0.95 IRQ
Zero Crossing Detection
V
Read RSTATUS
(
)
2
= 0.974 = -0.2dBs
Figure 12- Zero cross detection on Voltage Channel
0
(60Hz ; -0.2dB) -20 (60Hz ; -13)
-40
-20
-60
10
1
10 Frequency (Hz)
2
-40 3 10
The zero crossing interrupt is generated from the output of LPF1. LPF1 has a single pole at 260Hz (CLKIN = 10MHz). As a result there will be a phase lag between the analog input signal of the voltage channel and the output of LPF1. The phase response of this filter is shown in the Voltage channel Sampling section of this data sheet. The phase lag response of LPF1 results in a time delay of approximately 0.6ms (@ 60Hz) between the zero crossing on the analog inputs of Voltage channel and the falling of IRQ. When one phase crosses zero from negative to positive values (rising edge), the corresponding flag in the Interrupt Status register (bit 7-9) is set to logic one. An active-low in the IRQ output will also appear if the corresponding ZX bit in the Interrupt Mask register is set to logic one. The flag in the Interrupt status register is reset to 0 when the Interrupt status register with reset (RSTATUS) is read. Each phase has its own interrupt flag and mask bit in the interrupt register. -13-
Figure 11 - Magnitude & Phase response of LPF1
REV. PrG 01/03
Gain (dBs)
Phase ()
PRELIMINARY TECHNICAL DATA ADE7754
In addition to the MASK bits, the Zero crossing detection interrupt of each phase is enabled/disabled by setting the ZXSEL bits of the MMODE register (Addr. 0x0B) to logic one or zero respectively.
Zero crossing Time out
Each zero crossing detection has an associated internal timeout register (not accessible to the user). This unsigned, 16-bit register is decremented (1 LSB) every 384/CLKIN seconds. The registers are reset to a common user programmed value -i.e. Zero Cross Time Out register (ZXTOUT, Addr. 0x12) every time a zero crossing is detected on its associated input. The default value of ZXTOUT is FFFFh. If the internal register decrements to zero before a zero crossing at the corresponding input is detected, it indicates an absence of a zero crossing in the time determined by the ZXTOUT. The ZXTO detection bit of the corresponding phase in the Interrupt Status Register is then switched on (bit 4-6). An active-low on the IRQ output will also appear if the SAG mask bit for the corresponding phase in the Interrupt Mask register is set to logic one. In addition to the MASK bits, the Zero crossing Time out detection interrupt of each phase is enabled/disabled by setting the ZXSEL bits of the MMODE register (Addr. 0x0B) to logic one or zero respectively. When the zero crossing Time out detection is disabled by this method, the ZXTO flag of the corresponding phase is switched ON all the time. Figure 13 shows the mechanism of the zero crossing time out detection when the line voltage A stays at a fixed DC level for more than CLKIN/384 x ZXTOUT seconds.
16-bit internal register value ZXTOUT
The resolution of this register is 2.4s/LSB when CLKIN=10MHz, which represents 0.014% when the line frequency is 60Hz. When the line frequency is 60Hz, the value of the Period register is approximately 6944d. The length of the register enables the measurement of line frequencies as low as 12.7Hz.
LINE VOLTAGE SAG DETECTION
The ADE7754 can be programmed to detect when the absolute value of the line voltage of any phase drops below a certain peak value, for a number of half cycles. Each phase of the voltage channel is controlled simultaneously. This condition is illustrated in Figure 14 below.
VAP, VBP, or VCP Full Scale SAGLVL[7:0]
SAGCYC[7:0] = 06h 6 half cycles
SAG event reset low when voltage channel exceeds SAGLVL[7:0]
SAG Interrupt Flag (Bit 1 to 3 of STATUS register)
Read RSTATUS register
Figure 14 - ADE7754 Sag detection
Voltage channel A
Figure 14 shows a line voltage falling below a threshold which is set in the Sag Level register (SAGLVL[7:0]) for nine half cycles. Since the Sag Cycle register indicates a 6 half-cycle threshold (SAGCYC[7:0]=06h), the SAG event is recorded at the end of the sixth half-cycle by setting the SAG flag of the corresponding phase in the Interrupt status register (bit 1 to 3 in the Interrupt Status register). If the SAG enable bit is set to logic one for this phase (bit 1 to 3 in the Interrupt Mask register), the IRQ logic output will go active low - see ADE7754 Interrupts. All the phases are compared to the same parameters defined in the SAGLVL and SAGCYC registers.
Sag Level Set
ZXTOA detection bit
Figure 13 - Zero crossing Time out detection
PERIOD MEASUREMENT
The ADE7754 provides also the period measurement of the line voltage. The period is measured on the phase specified by bit 0-1 of the MMODE register. The period register is an unsigned 15-bit register and is updated every period of the selected phase. Bit 0-1 and bit 4-6 of the MMODE register select the phase for the period measurement, both selection should indicate the same phase. The ZXSEL bits of the MMODE register (bit 4-6) enable the phases on which the Period measurement can be done. The PERDSEL bits select the phase for Period measurement within the phases selected by the ZXSEL bits.
The content of the Sag Level register (1 byte) is compared to the absolute value of the most significant byte output from the voltage channel ADC. Thus, for example, the nominal maximum code from the voltage channel ADC with a full scale signal is 28F5h --see Voltage Channel Sampling. Therefore, writing 28h to the Sag Level register will put the sag detection level at full scale and set the SAG detection to its most sensitive value. Writing 00h will put the Sag detection level at zero. The detection of a decrease of an input voltage is in this case hardly possible. The detection is made when the content of the SAGLVL register is greater than the incoming sample.
-14-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
PEAK DETECTION
The ADE7754 can also be programmed to detect when the absolute value of the voltage or the current channel of one phase exceeds a certain peak value. Figure 15 illustrates the behavior of the PEAK detection for the voltage channel.
VAP, VBP, or VCP VPEAK[7:0]
processed and placed in the Temperature register (TEMP[7:0]). This register can be read by the user and has an address of 08h -see ADE7754 Serial Interface section. The contents of the Temperature register are signed (2's complement) with a resolution of 4C/LSB. The temperature register will produce a code of 00h when the ambient temperature is approximately 129C. The value of the register will be : Temperature register = (Temperature (C) - 129)/4. The temperature in the ADE7754 has an offset tolerance of approximately 5C. The error can be easily calibrated out by an MCU.
PKV reset low when RSTATUS register is read
PKV Interrupt Flag (Bit C of STATUS register)
Read RSTATUS register
Figure 15 - ADE7754 Peak detection
Bits 2-3 of the Measurement Mode register define the phase supporting the peak detection. Both current and voltage of this phase can be monitored at the same time. Figure 15 shows a line voltage exceeding a threshold which is set in the Voltage peak register (VPEAK[7:0]). The Voltage Peak event is recorded by setting the PKV flag in the Interrupt Status register. If the PKV enable bit is set to logic one in the Interrupt Mask register, the IRQ logic output will go active low - see ADE7754 Interrupts.
Peak Level Set
The contents of the VPEAK and IPEAK registers are respectively compared to the absolute value of the most significant byte output of the selected voltage and current channels. Thus, for example, the nominal maximum code from the current channel ADC with a full scale signal is 28F5C2h -- see Current Channel Sampling. Therefore, writing 28h to the IPEAK register will put the current channel peak detection level at full scale and set the current peak detection to its least sensitive value. Writing 00h will put the current channel detection level at zero. The detection is done when the content of the IPEAK register is smaller than the incoming current channel sample.
TEMPERATURE MEASUREMENT
The ADE7754 also includes an on-chip temperature sensor. A temperature measurement is made every 4/CLKIN seconds. The output from the temperature sensing circuit is connected to an ADC for digitizing. The resultant code is
REV. PrG 01/03
-15-
PRELIMINARY TECHNICAL DATA ADE7754
PHASE COMPENSATION
When the HPFs are disabled the phase error between the current channel (IA, IB and IC) and the voltage channel (VA, VB and VC) is zero from DC to 3.3kHz. When the HPFs are enabled, the current channels have a phase response illustrated in Figure 16a & 16b. Also shown in Figure 16c is the magnitude response of the filter. As can be seen from the plots, the phase response is almost zero from 45Hz to 1kHz, This is all that is required in typical energy measurement applications.
0.07 0.06 0.05 0.04 Phase 0.03 (Degree) 0.02 0.01 0 -0.01 0 100 200 300 400 500 600 700 800 900 1000 Frequency (Hz)
Figure 16a - Phase response of the HPF & Phase Compensation (10Hz to 1kHz)
0.01 0.008 0.006 Phase 0.004 (Degree) 0.002 0 -0.002 -0.004 40 45 50 55 Frequency (Hz) 60 65 70
However despite being internally phase compensated, the ADE7754 must work with transducers which may have inherent phase errors. For example a phase error of 0.1 to 0.3 is not uncommon for a CT (Current Transformer). These phase errors can vary from part to part and they must be corrected in order to perform accurate power calculations. The errors associated with phase mismatch are particularly noticeable at low power factors. The ADE7754 provides a means of digitally calibrating these small phase errors. The ADE7754 allows a small time delay or time advance to be introduced into the signal processing chain in order to compensate for small phase errors. Because the compensation is in time, this technique should only be used for small phase errors in the range of 0.1 to 0.5. Correcting large phase errors using a time shift technique can introduce significant phase errors at higher harmonics. The Phase Calibration registers (APHCAL, BPHCAL and CPHCAL) are 2's complement 5-bit signed registers which can vary the time delay in the voltage channel signal path from -19.2s to +19.2s (CLKIN = 10MHz). One LSB is equivalent to 1.2s. With a line frequency of 50Hz this gives a phase resolution of 0.022 at the fundamental (i.e., 360 x 1.2s x 50Hz). Figure 17 illustrates how the phase compensation is used to remove a 0.091 phase lead in IA of the current channel due to some external transducer. In order to cancel the lead (0.091) in IA of the current channel, a phase lead must also be introduced into VA of the voltage channel. The resolution of the phase adjustment allows the introduction of a phase lead of 0.086. The phase lead is achieved by introducing a time advance into VA. A time advance of 4.8s is made by writing -4 (1Ch) to the time delay block (APHCAL[4:0]), thus reducing the amount of time delay by 4.8s - see Calibration of a 3-phase meter based on the ADE7754.
IAP IA IAN 24 PHASE CALIBRATION 1 VA VN PGA2 PGA1
HPF
24
ADC
LPF2
VAP
ADC
7
0.69 @ 50Hz, 0.022 0.83 @ 60Hz, 0.024
0
00011
100
VA IA
Figure 16b - Phase response of the HPF & Phase compensation (40Hz to 70Hz)
0.01 0.008 0.006 Phase 0.004 (Degree) 0.002 0 -0.002 -0.004 44 46 48 50 Frequency (Hz) 52 54 56
V1 V2 0.1
APHCAL[4:0] -19.2s to +19.2s
VA delayed by 4.8s (-0.086 @ 50Hz) 1Ch
50Hz 50Hz
Figure 17 - Phase Calibration
Figure 16c - Gain response of HPF & Phase Compensation (deviation of Gain as % of Gain at 54Hz)
-16-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
ROOT MEAN SQUARE MEASUREMENT
Root Mean Square (RMS) is a fundamental measurement of the magnitude of an AC signal. Its definition can be both practical and mathematical. Defined practically, the RMS value assigned to an AC signal is the amount of DC required to produce an equivalent amount of heat in the same load. Mathematically: the RMS value of a continuous signal f(t) is defined as:
Frms =
1 f 2 (t ) dt (1) T 0
T
One LSB of the current RMS register is equivalent to one LSB of a current waveform sample. The update rate of the current RMS measurement is CLKIN/12. With the specified full scale analog input signal of 0.5V, the ADC will produce an output code which is approximately 2,684,354d - see Current channel ADC. The equivalent RMS values of a full-scale AC signal and full scale DC signal are respectively 1,898,124d (1CF68Ch) and 2,684,354d (28F5C2h). With offset calibration, the current rms measurement provided in the ADE7754 is accurate within +/-2% for signal input between Full scale and Full scale/100. Note: A crosstalk between phases can appear in the ADE7754 current rms measurements. This crosstalk follows a specific pattern: Current rms measurements of Phase A are corrupted by the signal on the Phase C current input, Current rms measurements of Phase B are corrupted by the signal on the Phase A current input and Current rms measurements of Phase C are corrupted by the signal on the Phase B current input. This crosstalk is only present on the current rms measurements and does not affect the regular Active power measurements. The level of the crosstalk is dependent on the level of the noise source and the phase angle between the noise source and the corrupted signal. The level of the crosstalk can be reduced by writing 0x01F7 to the address 0x3D. This 16bit register is reserved for factory operation and should not be written to any other value. When the current inputs are 120 out of phase and the register 0x3D is set to 0x01F7, the level of the current rms crosstalk is below 2%.
For time sampling signals, rms calculation involves squaring the signal, taking the average and obtaining the square root:
Frms =
1N2 f ( i ) (2) N i =1
The method used to calculate the RMS value in the ADE7754 is to low-pass filter the square of the input signal (LPF3) and take the square root of the result. With V (t ) = Vrms 2 sin (t ) then
V (t ) x V (t ) = Vrms 2 - Vrms 2 cos (2t )
The RMS calculation is simultaneously processed on the six analog input channels. Each result is available on separate registers.
Current RMS calculation
Figure 18 shows the detail of the signal processing chain for the RMS calculation on one of the phases of the current channel. The current channel RMS value is processed from the samples used in the current channel waveform sampling mode. It should be noticed that the APGAIN adjustment affects the result of the RMS calculation - see Current RMS Gain adjust. The current RMS values are stored in an unsigned 24-bit registers (AIRMS, BIRMS and CIRMS).
IRMSOS[11:0] SGN 211 210 29 2 2 2 1 2 0
Irms(t) -100% to +100% FS
1CF68Ch 00h
IA
HPF
LPF3
24
+
S
24
IRMS
AAPGAIN
Current Channel (RMS)
Current Signal - i(t) FS
400000h 28F5C2h 00000h D70A3Eh C00000h ADC Output word Range - FS + FS
2378EDh 1CF68Ch 147AE0h 0000h EB8520h E30974h DC8713h
+ 122.5% FS + 100% FS + 70.7% FS AAPGAIN[11:0] - 70.7% FS - 100% FS 000h 7FFh 800h - 122.5% FS
Figure 18 - Current RMS signal processing
REV. PrG 01/03
-17-
PRELIMINARY TECHNICAL DATA ADE7754
Current RMS Gain Adjust
The Active power Gain registers (AAPGAIN[11:0], BAPGAIN and CAPGAIN) have an effect on the Active Power and current rms values. It is not recommended to calibrate the current rms measurements with these registers. The conversion of the current rms registers values to Amperes has to be done in an external Micro-controller with a specific Ampere/LSB constant for each phase - see Calibration of a 3-phase meter based on the ADE7754. Due to gain mismatches between phases, the calibration of the Ampere/ LSB constant has to be done for each phase separately. One point calibration is sufficient for this calibration. The Active Power Gain registers are aimed to ease the calibration of the Active energy calculation in MODE 1 and 2 of the VAMODE register. If the APGAIN registers are used for Active Power calibration (WATMOD bits in WATTMode register = 1 or 2), the current rms values are changed by Active Power Gain register value as described in the expression below:
AAPGAIN Current RMS Register phase A = RMS x 1 + 212
that the maximum value from the Current RMS calculation is 1,898,124d with full scale AC inputs, then 1 LSB of the current RMS offset represents 0.0058% of measurement error at -40dB down of full scale.
I rms = I rms 0 2 + IRMSOS x 32768
where Irmso is the RMS measurement without offset correction. The current rms offset compensation should be done by testing the rms results at two non-zero input levels. One measurement can be done close to full scale and the other at approximately Full scale/100. The current offset compensation can then be derived from these measurements - see Calibration of a 3-phase meter based on the ADE7754.
Voltage RMS calculation
For example, when 7FFh is written to the Active Power Gain register, the ADC output is scaled up by 22.5%. Similarly, 800h = -2047d (signed 2's Complement) and ADC output is scaled by 29.3%. These two examples are illustrated graphically in Figure 18.
Current RMS offset compensation
The ADE7754 incorporates a current RMS offset compensation for each phase (AIRMSOS, BIRMSOS and CIRMSOS). These are 12-bit 2-complement signed registers which can be used to remove offsets in the current RMS calculations. An offset may exist in the RMS calculation due to input noises that are integrated in the DC component of V2(t). The offset calibration will allow the contents of the IRMS registers to be maintained at zero when no current is being consumed. n LSB of the Current RMS offset are equivalent to 32768 x n LSB of the square of the Current RMS register. Assuming
Voltage Signal - V(t) 0.5/GAIN2
Figure 19 shows the details of the signal processing chain for the RMS calculation on one of the phases of the voltage channel. The voltage channel RMS value is processed from the samples used in the voltage channel waveform sampling mode. The output of the voltage channel ADC can be scaled by 50% by changing VGAIN registers to perform an overall Apparent power calibration -see Apparent Power calculation. The VGAIN adjustment affects the RMS calculation as it is done before the RMS signal processing. The voltage RMS values are stored in unsigned 24-bit registers (AVRMS, BVRMS and CVRMS). 256 LSB of the voltage RMS register is approximately equivalent to one LSB of a voltage waveform sample. The update rate of the voltage RMS measurement is CLKIN/12. With the specified full scale AC analog input signal of 0.5V, the LPF1 produces an output code which is approximately 10,217d at 60 Hz- see Voltage channel ADC. The equivalent RMS value of a full-scale AC signal is approximately 7,221d (1C35h), which gives a voltage RMS value of 1,848,772 (1C35C4h) in the VRMS register. With offset calibration, the voltage rms measurement provided in the ADE7754 is accurate within +/-0.5% for signal input between Full scale and Full scale/20.
VRMSOS[11:0] SGN 211 28 2 2 2 1 2 0
LPF1
LPF3
VA
12 800Hex - 7FFHex
AVGAIN[11:0] Voltage Channel (RMS)
+
+
S
24
Voltage Signal - v(t) FS
4000h 28F5h 00000h D70Ah C000h ADC Output word Range - FS + FS
2A50A6h 1C35C4h E1AE2h 0000h F1E51Eh E3CA3Ch D5AF5Ah
+ 150% FS + 100% FS + 50% FS AVGAIN[11:0] - 50% FS - 100% FS 000h 7FFh 800h - 150% FS
Figure 19 - Voltage RMS signal processing
-18-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Voltage RMS Gain Adjust ACTIVE POWER CALCULATION
The Voltage Gain register (AVGAIN[11:0], BVGAIN and CVGAIN) have an effect on the Apparent Power and voltage rms values. It is not recommended to calibrate the voltage rms measurements with these registers. The conversion of the voltage rms registers values to Volts has to be done in an external Micro-controller with a specific Volt/LSB constant for each phase - see Calibration of a 3-phase meter based on the ADE7754. Due to gain mismatches between phases, the calibration of the Volt/LSB constant has to be done for each phase separately. One point calibration is sufficient for this calibration. The Voltage Gain registers are aimed to ease the calibration of the apparent energy calculation in MODE 1 and 2 of the VAMODE register. If the VGAIN registers are used for Apparent Power calibration (VAMOD bits in VAMode register = 1 or 2), the voltage rms values are changed by Voltage Gain register value as described in the expression below:
AVGAIN Voltage RMS Re gister Phase A = RMS x 1 + 212
Electrical power is defined as the rate of energy flow from source to load. It is given by the product of the voltage and current waveforms. The resulting waveform is called the instantaneous power signal and it is equal to the rate of energy flow at every instant of time. The unit of power is the watt or joules/sec. Equation 5 gives an expression for the instantaneous power signal in an ac system.
v(t) = 2V sin(t )
(3) (4)
i(t) = 2I sin(t )
where V = rms voltage, I = rms current.
p(t) = v(t) x i(t)
p(t) = VI - VI cos( 2t )
(5)
The average power over an integral number of line cycles (n) is given by the expression in Equation 6.
For example, when 7FFh is written to the Voltage Gain register, the ADC output is scaled up by +50%. 7FFh = 2047d, 2047/212 = 0.5. Similarly, 800h = -2047 Dec (signed 2's Complement) and ADC output is scaled by -50%. These two examples are illustrated graphically in Figure 19.
Voltage RMS offset compensation
P=
1 nT
nT
p(t)dt=VI
0
(6)
where T is the line cycle period. P is referred to as the Active or Real Power. Note that the active power is equal to the DC component of the instantaneous power signal p(t) in Equation 5 , i.e., VI. This is the relationship used to calculate active power in the ADE7754 for each phase. The instantaneous power signal p(t) is generated by multiplying the current and voltage signals in each phase. The DC component of the instantaneous power signal in each phase (A, B and C) is then extracted by LPF2 (Low Pass Filter) to obtain the active power information on each phase. This process is illustrated graphically on Figure 20. In a polyphase system, the total electrical power is simply the sum of the real power in all active phases. The different solutions available to process the total active power are discussed in the following paragraph.
p(t) = V x I - V x I cos( 2 t )
Active Real Power Signal = V x I V. I.
D1B717h
The ADE7754 incorporates a voltage RMS offset compensation for each phase (AVRMSOS, BVRMSOS and CVRMSOS). These are 12-bit 2-complement signed registers which can be used to remove offsets in the voltage RMS calculations. An offset may exist in the RMS calculation due to input noises and offsets in the input samples. The offset calibration allows the contents of the VRMS registers to be maintained at zero when no voltage is applied. n LSB of the Voltage RMS offset are equivalent to 64 x n LSB of the voltage RMS register. Assuming that the maximum value from the Voltage RMS calculation is 1,898,124d with full scale AC inputs, then 1 LSB of the voltage RMS offset represents 0.07% of measurement error at -26dB down of full scale.
Vrms = Vrms 0 + VRMSOS x 64
where Vrmso is the RMS measurement without offset correction. The voltage rms offset compensation should be done by testing the rms results at two non-zero input levels. One measurement can be done close to full scale and the other at approximately Full scale/10. The voltage offset compensation can then be derived from these measurements - see Calibration of a 3-phase meter based on the ADE7754.
1A36E2Eh
Instantaneous Power Signal
00000h
Current i(t) = 2 I sin( t ) Voltage v(t) = 2V sin( t )
Figure 20- Active Power Calculation
REV. PrG 01/03
-19-
PRELIMINARY TECHNICAL DATA ADE7754
Since LPF2 does not have an ideal "brick wall" frequency response--see Figure 21, the Active Power signal will have some ripple due to the instantaneous power signal. This ripple is sinusoidal and has a frequency equal to twice the line frequency. Since the ripple is sinusoidal in nature, it is removed when the Active Power signal is integrated to calculate the Energy - see Energy Calculation.
0
8Hz
Active Power Voltage channel 0.5V / GAIN2 Current channel 0.5V / GAIN1 13A92A4h D1B717h 68DB8Ch 0000000h 972474h 2E48E9h EC56D5Ch 000h 7FFh 800h + 150% FS + 100% F5 + 50% FS AAPGAIN[11:0] or AWGAIN[11:0] - 50% FS - 100% FS - 150% FS
-4
-8
dBs
-12
Figure 23 - Active Power Calculation Output Range
-16
Power Offset Calibration
-20
-24 1.0Hz
3.0Hz
10Hz
30Hz
Frequency
Figure 21- Frequency response of the LPF used to filter Instantaneous Power in each phase
Figure 22 shows the signal processing in each phase for the Active Power in the ADE7754. Figure 23 shows the maximum code (Hexadecimal) output range of the Active Power signal (after AWG). Note that the output range changes depending on the contents of the Active Power Gain and Watt Gain registers - see Current channel ADC. The minimum output range is given when the Active Power Gain and Watt Gain registers contents are equal to 800h and the maximum range is given by writing 7FFh to the Active Power Gain and Watt Gain registers. These can be used to calibrate the Active Power (or Energy) calculation in the ADE7754 for each phase and also the Total Active Energy -see Total Active Power calculation.
The ADE7754 also incorporates an Active Offset register on each phase (AAPOS, BAPOS and CAPOS). These are signed 2's complement 12-bit registers which can be used to remove offsets in the active power calculations. An offset may exist in the power calculation due to cross talk between channels on the PCB or in the IC itself. The offset calibration allows the contents of the Active Power register to be maintained at zero when no power is being consumed. 1 LSBs in the Active Power Offset register is equivalent to 1 LSB in the 28-bit Energy bus displayed on Figure 22. Each time power is added to the internal Active Energy register, the content of the Active Power Offset register is added -see Total Active Power calculation. Assuming the average value from LPF2 is 8637BCh (8,796,092d) with full AC scale inputs on current channel and voltage channel, then 1 LSB in the LPF2 output is equivalent to 0.011% of measurement error at 60dB down of full scale - see Calibration of a 3-phase meter based on the ADE7754.
HPF
APOS[11:0] sgn sgn sgn sgn sgn 210 2 4 2 3 2 2 2 1 20
D1B717h
I
Current Signal - i(t) -100% to +100% FS
28F5C2h 00h D70A3Eh 1V / GAIN1
Active Power Signal - P
MULTIPLIER
LPF2
24 28
+
S
12 AWG
1
Instantaneous Power Signal - p(t)
V
Voltage Signal - v(t) -100% to + 100% FS
28F5h 00h D70Bh 1V / GAIN2
Figure 22 - Active Power Signal Processing
-20-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Reverse Power Information
The ADE7754 detects when the current and voltage channels of any of the three phase inputs have a phase difference greater than 90 i.e. |A| or |B| or |C| > 90. This mechanism can detect wrong connection of the meter or generation of Active Energy. The Reverse power information is available for Phase A - B and C respectively by reading bit12-14 of the CFNUM register - see Table XI. The state of these bits represent the sign of the active power of the corresponding phase. Logic one corresponds to negative active power. The AENERGY phase selection bits (WATSEL bits of the WATMode register) enable the negative power detection per phase. If Phase A is enabled in the AENERGY accumulation -bit 5 of WATMode register sets to logic one- the negative power detection for Phase A -bit 12 of CFNUM registerindicates the direction of the active energy. If Phase A is disabled in the AENERGY register, the negative power bit for Phase A is set to logic zero.
TOTAL ACTIVE POWER CALCULATION
Note: IA*, IB* and IC* represent the current channels samples after APGAIN correction and High-Pass Filtering. For example, for WATMOD = 1, when all the gains and offsets corrections are taken into consideration, the exact formula that is used to process the Active Power is:
Total Active Power =
AWG AAPGAIN BAPGAIN I A - 1 + I B + AAPOS 1 + V A 1 + 212 212 212 CAPGAIN BAPGAIN CWG + VC 1 + I B + CAPOS 1 + I C - 1 + 212 212 212
Depending on the polyphase meter service, the appropriate formula should be chosen to calculate the Active power. The American ANSI C12.10 standard defines the different configurations of the meter. Table II describes which mode should be chosen in these different configurations. ANSI Meter Form 5S/13S 6S/14S 8S/15S 9S/16S 3-wire 4-wire 4-wire 4-wire Delta Wye Delta Wye WATMOD 0 1 2 0 WATSEL 3 or 5 or 6 5 5 7
The sum of the active powers coming from each phase gives the total active Power consumption. Different combinations of the three phases can be selected in the sum by setting bits 7-6 of the WATMode register (mnemonic WATMOD[1:0]). Figure 24 demonstrates the calculation of the total active power. The total active power calculated by the ADE7754 depends on the configuration of the WATMOD bits in the WATMode register. Each term of the formula can be disabled or enabled by setting WATSEL bits respectively to logic 0 or logic 1 in the WATMode register. The different configurations are described in Table I. WATMOD 0d 1d 2d WATSEL0 V A x IA
*
Table II - Meter form configuration
Different gain calibration parameters are offered in the ADE7754 to cover the calibration of the meter in different configurations. It should be noticed that in Mode 0, APGAIN and WGAIN registers have the same effect on the end result. In this case, APGAIN registers should be set at their default value and the gain adjustment should be done with the WGAIN registers.
WATSEL1 + V B x IB
*
WATSEL2 + V C x I C* + VC x (IC*-IB*) + V C x I C*
VA x (IA*-IB*) + 0 VA x (IA -IB ) + 0
* *
Table I - Total Active Power calculation
0 IB* IA PHASE A* VA
HPF HPF
+
AAPOS
S
28
+
LPF2
AAPGAIN
1
S
AWGAIN
IB*
28
BAPOS
Total Instantaneous Power Signal
LPF2
Active Power Signal - P
2752545h
IB PHASE B* VB
BAPGAIN
1
+
S
BWGAIN
0 IB* IC PHASE C* VC
CAPGAIN
1 HPF
+
CAPOS
S
28
+
LPF2
S
CWGAIN
Figure 24 -Total Active Power Consumption Calculation
REV. PrG 01/03
-21-
PRELIMINARY TECHNICAL DATA ADE7754
ENERGY CALCULATION
As stated earlier, power is defined as the rate of energy flow. This relationship can be expressed mathematically as Equation 7.
dE dt Where P = Power and E = Energy. Conversely Energy is given as the integral of Power. P=
(7)
E= Pdt
(8)
The ADE7754 achieves the integration of the Active Power signal by continuously accumulating the Active Power signal in an internal non-readable 54-bit Energy register. The Active Energy register (AENERGY[23:0]) represents the upper 24 bits of this internal register. This discrete time accumulation or summation is equivalent to integration in continuous time. Equation 9 below expresses the relationship
register after a read. Two operations are held when reading the RAENERGY register: Read and reset to zero the internal Active Energy register. Only one operation is held when reading the AENERGY register: read the internal Active Energy register. Figure 26 shows the energy accumulation for full scale signals (sinusoidal) on the analog inputs. The three displayed curves, illustrate the minimum time it takes the energy register to roll-over, when the individual Watt Gain registers contents are all equal to 3FFh, 000h and 800h. The Watt Gain registers are used to carry out a power calibration in the ADE7754. As shown, the fastest integration time occurs when the Watt Gain registers are set to maximum full scale, i.e., 3FFh.
AENERGY[23:0]
7F,FFFFh AWG = BWG = CWG = 3FFh AWG = BWG = CWG = 000h AWG = BWG = CWG = 800h 3F,FFFFh
E= p(t)dt = Lim p( nT ) x T T0 n =0
(9)
00,0000h 44 88 132 176 220 264
Where n is the discrete time sample number and T is the sample period. The discrete time sample period (T) for the accumulation register in the ADE7754 is 0.4s (4/10MHz). As well as calculating the Energy, this integration removes any sinusoidal component which may be in the Active Power signal. Figure 26 shows a graphical representation of this discrete time integration or accumulation. The Active Power signal is continuously added to the internal Energy register. This addition is a signed addition, therefore negative energy will be subtracted from the Active Energy contents.
AENERGY[23:0] 23 0
40,0000h
80,0000h
Time (seconds)
Figure 26 -Energy register roll-over time for full-scale power (Minimum & Maximum Power Gain)
53
0
WDIV
T
53 +
TOTAL ACTIVE POWER
0
+
Note that the Active Energy register contents roll over to fullscale negative (80,0000h) and continue increasing in value when the power or energy flow is positive -See Figure 26. Conversely if the power is negative the energy register would under flow to full scale positive (7F,FFFFh) and continue decreasing in value. By using the Interrupt Enable register, the ADE7754 can be configured to issue an interrupt (IRQ) when the Active Energy register is half full (positive or negative).
Active Power Signal - P
T
TOTAL ACTIVE POWER ARE ACCUMULATED (INTEGRATED) IN THE ACTIVE ENERGY REGISTER
26667h
00000h
time (nT)
Figure 25 -ADE7754 Active Energy calculation
The 54-bit of the internal Energy register are divided by WDIV. If the value in the WDIV register is equal to 0 then the internal Active Energy register is divided by 1. WDIV is an 8-bit unsigned register. The upper 24-bit of the result of the division are then available in the 24-bit Active Energy register. The AENERGY and RAENERGY registers read the same internal Active energy register. They differ by the the state in which they are leaving the internal Active energy -22- REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Integration times under steady load
As mentioned in the last section, the discrete time sample period (T) for the accumulation register is 0.4s (4/CLKIN). With full-scale sinusoidal signals on the analog inputs and the Watt Gain registers set to 000h, the average word value from each LPF2 is D1B717h - see Figures 20 and 22. The maximum value which can be stored in the Active Energy register before it over flows is 223 -1 or 7F,FFFFh. As the average word value is added to the internal register, which can store 253 - 1 or 1F,FFFF,FFFF,FFFFh before it overflows, the integration time under these conditions with WDIV=0 is calculated as follows:
If the value zero is written to any of these registers, the value one would be applied to the register. The ratio CFNUM/ CFDEN should be smaller than one to assure proper operation. If the ratio of the registers CFNUM/CFDEN is greater than one, the CF frequency can no longer be guaranteed to be a consistent value. For example if the output frequency is 18.744kHz while the contents of CFDEN are zero (000h), then the output frequency can be set to 6.103Hz by writing BFFh to the CFDEN register. The output frequency will have a slight ripple at a frequency equal to twice the line frequency. This is due to imperfect filtering of the instantaneous power signal to generate the Active Power signal - see ACTIVE POWER CALCULATION. Equation 5 gives an expression for the instantaneous power signal. This is filtered by LPF2 which has a magnitude response given by Equation 11.
Time =
1F , FFFF , FFFF , FFFFh x 0.4 s = 88 s 3 x D1B717h
When WDIV is set to a value different from 0, the integration time varies as shown on Equation 10. Time = TimeWDIV=0 x WDIV (10) The WDIV register can be used to increase the time before the active energy register overflows, therefore reducing the communication needs with the ADE7754.
Energy to Frequency Conversion
H( f ) =
1 1+ f2 82
(11)
The ADE7754 also provides energy to frequency conversion for calibration purposes. After initial calibration at manufacture, the manufacturer or end customer will often verify the energy meter calibration. One convenient way to verify the meter calibration is for the manufacturer to provide an output frequency which is proportional to the energy or active power under steady load conditions. This output frequency can provide a simple, single wire, optically isolated interface to external calibration equipment. Figure 27 illustrates the Energy to frequency conversion in the ADE7754.
11 CFNUM[11:0]
Active Power Phase A + Active Power Phase B Active Power Phase C +
The Active Power signal (output of the LPF2) can be rewritten as.
VI p(t ) = VI - 2 2 fl 1+ 8 cos ( 4 fl t )
(12)
where fl is the line frequency (e.g., 60Hz)
From Equation 8
0
53 Total Active Power 0
DFC
CF
VI E(t ) = VIt - sin (4 fl t ) 2 2 fl 4 fl 1 + 8
(13)
11
CFDEN[11:0]
0
Figure 27- ADE7754 Energy to Frequency Conversion
A Digital to Frequency Converter (DFC) is used to generate the CF pulsed output. The DFC generates a pulse each time one LSB in the Active Energy register is accumulated. An output pulse is generated when CFDEN/CFNUM pulses are generated at the DFC output. Under steady load conditions the output frequency is proportional to the Active Power. The maximum output frequency (CFNUM=00h & CFDEN=00h) with full scale AC signals on the three phases i.e. current channel and voltage channel is approximately 96kHz. The ADE7754 incorporates two registers to set the frequency of CF (CFNUM[11:0] and CFDEN[11:0]). These are unsigned 12-bit registers which can be used to adjust the frequency of CF to a wide range of values. These Frequency scaling registers are 12-bit registers which can scale the output frequency by 1/212 to 1 with a step of 1/212. REV. PrG 01/03
From Equation 13 it can be seen that there is a small ripple in the energy calculation due to a sin(2t) component. This is shown graphically in Figure 28. The ripple will get larger as a percentage of the frequency at larger loads and higher output frequencies. Choosing a lower output frequency at CF for calibration can significantly reduce the ripple. Also averaging the output frequency by using a longer gate time for the counter will achieve the same results.
E(t) VIt
VI 4 - sin ( fl t ) 2 2 fl 4 fl 1 + 8
t
Figure 28 - Output frequency ripple
-23-
PRELIMINARY TECHNICAL DATA ADE7754
No Load Threshold
The ADE7754 includes a selectable "no load threshold" or "start up current" feature that will eliminate any creep effects in the active energy measurement of the meter. When enabled, this function is independently applied on each phase's active power calculation. This mode is selected by default and can be disabled by setting to logic one bit3 of the GAIN register (Address 18h) - see Table X. Any load generating an active power amplitude lower than the minimum amplitude specified, will not be taken into account when accumulating the active power from this phase. The minimum instantaneous active power allowed in this mode is 0.005% of the full scale amplitude. As the maximum active power value is 13,743,895d with full scale analog input, the no-load threshold is 687d. For example, an energy meter with maximum inputs of 220V and 40A and Ib=10A, the maximum instantaneous active power is 3,435,974d assuming that both inputs represent half of the analog input full scale . As the no-load threshold represents 687d, the start up current represents 8mA or 0.08% of Ib.
Mode selection of the sum of the three active energies
In this mode, the Reverse Power information available in the CFNUM register is still detecting when negative active power is present on any of the three phase inputs.
LINE ENERGY ACCUMULATION
The ADE7754 is designed with a special energy accumulation mode which simplifies the calibration process. By using the on-chip zero-crossing detection, the ADE7754 accumulates the Active Power signal in the LAENERGY register for an integer number of half cycles, as shown in Figure 29. The line active energy accumulation mode is always active. Important: It is recommended to use this mode with only one phase selected. If several phases are selected, the amount accumulated can be smaller than it is supposed to be. Each one of three phases zero-crossing detection can contribute to the accumulation of the half line cycles. Phase A, B and C zero crossings are respectively taken into account when counting the number of half line cycles by setting to logic one bits 4-6 of the MMODE register. Selecting phases for the Zero crossing counting has also the effect of enabling the Zero-crossing detection, Zero-crossing Time-Out and Period Measurement for the corresponding phase as described in the Zero-crossing Detection paragraph. The number of half line cycles is specified in the LINCYC register. LINCYC is an unsigned 16-bit register. The ADE7754 can accumulate Active Power for up to 65535 combined half cycles. Because the Active Power is integrated on an integer number of line cycles, the sinusoidal component is reduced to zero. This eliminates any ripple in the energy calculation. Energy is calculated more accurately because of this precise timing control. At the end of an energy calibration cycle the LINCYC flag in the Interrupt Status register is set. If the LINCYC mask bit in the Interrupt Mask register is enabled, the IRQ output will also go active low.
The ADE7754 can be configured to execute the arithmetic sum of the three active energies, Wh = WhA + Wh + WhC, or the sum of the absolute value of these energies, Wh = |WhA| + | Wh| + |WhC|. The selection between the two modes can be made by setting bit2 of the GAIN register (Address 18h) - see Table X. Logic high and logic low of this bit correspond respectively to the sum of absolute values and the arithmetic sum. This selection affects the active energy accumulation in the AENERGY, RAENERGY, LAENERGY registers as well as for the CF frequency output. When the sum of the absolute values is selected, the active energy from each phase is always counted positive in the total active energy. It is particularly useful in 3-phase 4-wire installation where the sign of the active power should always be the same. If the meter is misconnected to the power lines i.e. CT connected in the wrong direction, the total active energy recorded without this solution can be reduced by two third. The sum of the absolute values assures that the active energy recorded represents the actual active energy delivered.
LAENERGY[23:0] 23 0
51
0
ACCUMULATE ACTIVE POWER DURING LINCYC ZERO-CROSSINGS
WDIV
Power Phase A + Power Phase B +
+
51
+
0
LPF1 FROM VA ADC
MMODE register bit 4 ZEROCROSS DETECT MMODE register bit 5 ZEROCROSS DETECT
Power Phase C
LPF1 FROM VB ADC LPF1 FROM VC ADC
CALIBRATION CONTROL
ZEROCROSS DETECT MMODE register bit 6
LINCYC[15:0]
Figure 29 - ADE7754 Active Energy Calibration
-24-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Thus the IRQ line can also be used to signal the end of a calibration. From Equations 8 and 12.
VI E (t ) = VI dt - 2 0 f 1+ 8
nT
nT cos (2 f t ) dt 0
(14)
where n is a integer and T is the line cycle period. Since the sinusoidal component is integrated over an integer number of line cycles, its value is always zero. Therefore:
nT
In normal mode, bit5 of WAVMODE register equals 0 the type of active power summation in the LAENERGY register (sum of absolute active power or arithmetic sum) is selected by bit2 of the GAIN register. In the mode where the Active powers are accumulated in the LVAENERGY register, bit5 of WAVMODE register equals 1, it should be noticed that the sum of several active power is always done ignoring the sign of the active powers. This is due to the unsigned nature of the LVAENERGY register that does not allow signed addition.
REACTIVE POWER CALCULATION
E(t) =
VI dt + 0
0
(15) (16)
Reactive power is defined as the product of the voltage and current waveforms when one of this signal is phase shifted by 90 at each frequency. It is defined mathematically in the IEEE Standard Dictionary 100 as:
E(t) = VInT
Reactive Power =
V
n =1
n
I n sin ( n )
The total active power calculated by the ADE7754 in the Line accumulation mode depends on the configuration of the WATMOD bits in the WATMode register. Each term of the formula can be disabled or enabled by the LWATSEL bits of the WATMode register. The different configurations are described in Table III. WATMOD 0 1 2 LWATSEL0 V A x IA *
* * * *
LWATSEL1 + V B x IB *
LWATSEL2 + V C x I C* + VC x (IC*-IB*) + VC x IC
*
where Vn and In are respectively the voltage and current rms values of the nth harmonics of the line frequency, and n is the phase difference between the voltage and current nth harmonics. The resulting waveform is called the instantaneous reactive power signal (VAR). Equation 19 gives an expression for the instantaneous reactive power signal in an ac system without harmonics when the phase of the current channel is shifted by -90.
VA x (IA -IB ) + 0 VA x (IA -IB ) + 0
v(t ) = 2 V1 sin(t - 1 )
(17)
Table III - Total Line Active Energy calculation
i(t ) = 2 I1 sin(t ) i '(t ) = 2 I1 sin(t -
VAR(t ) = v(t ) x i '(t )
) 2
(18)
Note: IA*, IB* and IC* represent the current channels samples after APGAIN correction and High-Pass Filtering. Important: The Line Active Energy accumulation uses the same signal path as the Active Energy accumulation. However, the LSB size of these two registers is different. If the Line Active energy register and Active energy register are accumulated during the same amount of time, the Line Active energy register will be 4 times bigger than the Active Energy register. The LAENERGY register is also used to accumulate the reactive energy by setting to logic one bit5 of the WAVMode register (Add. 0Ch) - see reactive power calculation. When this bit is set to one, the accumulation of the Active Energy over half line cycles in the LAENERGY register is disabled and is done instead in the LVAENERGY register. As the LVAENERGY register is an unsigned value, the accumulation of the active energy in the LVAENERGY register is unsigned in this mode. The reactive energy is then accumulated in the LAENERGY register - see Figure 31. In this mode (reactive energy), the selection of the phases accumulated in the LAENERGY and LVAENERGY registers is done by the LWATSEL selection bits of the WATTMode register.
VAR(t ) = V1I1 sin(1 ) + V1I1 sin(2t + 1 )
(19)
The average power over an integral number of line cycles (n) is given by the expression in Equation 19.
VAR = 1 nT
nT
VAR(t )dt = V I
0
11
sin(1 )
(20)
where T is the line cycle period. VAR is referred to as the Reactive Power. Note that the reactive power is equal to the DC component of the instantaneous reactive power signal VAR(t) in Equation 19. This is the relationship used to calculate reactive power in the ADE7754 for each phase. The instantaneous reactive power signal VAR(t) is generated by multiplying the current and voltage signals in each phase. In this case, the phase of the current channel is shifted by -89. The DC component of the instantaneous reactive power signal in each phase (A, B and C) is then extracted by a low pass filter to obtain the reactive power information on each phase. In a polyphase system, the total reactive power is simply the sum of the reactive power in all active phases. The different solutions available to process the total reactive power from the individual calculation are discussed in the following paragraph. Figure 30 shows the signal processing in each phase for the Reactive Power calculation in the ADE7754.
REV. PrG 01/03
-25-
PRELIMINARY TECHNICAL DATA ADE7754
Important: As the phase shift applied on the current channel is not -90 as it should be ideally, the reactive power calculation done in the ADE7754 cannot be used directly for the reactive power calculation. Consequently, it is recommended to use the ADE7754 reactive power measurement only to get the sign of the reactive power. The reactive power can be processed using the power triangle method.
HPF
Active Power Reactive Power Apparent Power
0 1 0 1 LVAENERGY Register LAENERGY Register
Bit5 WAVMode Register
-89
MULTIPLIER Reactive Power Signal - P
I
Figure 31 - Selection of Reactive energy accumulation
LPF
24 28
1
V
Instantaneous Reactive Power Signal - p(t)
Figure 30 - Reactive Power Signal Processing
TOTAL REACTIVE POWER CALCULATION
The sum of the Reactive powers coming from each phase gives the Total Reactive Power consumption. Different combinations of the three phases can be selected in the sum by setting bits 7-6 of the WATMode register (mnemonic WATMOD[1:0]). Each term of the formula can be disabled or enabled by the LWATSEL bits of the WATMode register. It should be noticed that in this mode, the LWATSEL bits are also used to select the terms of the LVAENERGY register. The different configurations are described in Table III. The accumulation of the Reactive Power in the LAENERGY register is different from the accumulation of the Active Power in the LAENERGY register. Under the same signal conditions (e.g. Current and voltage channels at full scale), if the accumulation of the active power with PF = 1 during 1 second is Wh1 and the accumulation of the reactive power with PF = 0 during the same time is VARh1, then Wh1 = 9.546 x VAR1. Note: IA*, IB* and IC* represent the current channels samples after APGAIN correction, High-Pass Filtering and -89 phase shift in the case of Reactive Energy accumulation.
Reactive Energy accumulation selection
The features of the Reactive Energy accumulation are the same as the Line Active Energy accumulation: Each one of three phases zero-crossing detection can contribute to the accumulation of the half line cycles. Phase A, B and C zero crossings are respectively taken into account when counting the number of half line cycles by setting to logic one bits 4-6 of the MMODE register. Selecting phases for the Zero crossing counting has also the effect of enabling the Zero-crossing detection, Zero-crossing Time-Out and Period Measurement for the corresponding phase as described int he Zero-crossing Detection paragraph. The number of half line cycles is specified in the LINCYC register. LINCYC is an unsigned 16-bit register. The ADE7754 can accumulate Active Power for up to 65535 combined half cycles. At the end of an energy calibration cycle the LINCYC flag in the Interrupt Status register is set. If the LINCYC mask bit in the Interrupt Mask register is enabled, the IRQ output will also go active low. Thus the IRQ line can also be used to signal the end of a calibration. As explained in the Reactive Power paragraph, the purpose of the reactive Energy calculation in the ADE7754 is not to give an accurate measurement of this value but to to provide the sign of the the reactive energy. The ADE7754 provides an accurate measurement of the Apparent Energy. As the active energy is also measured in the ADE7754, a simple mathematical formula can be used to extract the Reactive energy. The evaluation of the sign of the Reactive Energy makes up the calculation of the Reactive Energy.
Reactive Energy = sign (Reactive Power ) x Apparent Energy 2 - Active Energy 2
The ADE7754 accumulates the Total Reactive Power signal in the LAENERGY register for an integer number of half cycles, as shown in Figure 29. This mode is selected by setting to logic one bit5 of the WAVMode register (Add. 0Ch). When this bit is set the accumulation of the Active Energy over half line cycles in the LAENERGY register is disabled and is done instead in the LVAENERGY register. In this mode, the accumulation of the Apparent Energy over half line cycles in the LVAENERGY is no-longer available - See Figure 31.
-26-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
APPARENT POWER CALCULATION
Apparent Power Voltage channel and Current channel 0.5V / GAIN 13A929h D1B71h 68DB9h 00000h F97247h F2E48Fh EC56D7h 000h 7FFh 800h + 150% FS + 100% FS + 50% FS AVAGAIN[11:0] - 50% FS - 100% FS - 150% FS
Apparent power is defined as the maximum active power that can be delivered to a load. As Vrms and Irms are the effective voltage and current delivered to the load, the Apparent Power (AP) is defined as Vrms x Irms. Note that the Apparent power is equal to the multiplication of the RMS values of the voltage and current inputs. For a poly-phase system, the RMS values of the current and voltage inputs of each phase (A, B and C) are multiplied together to obtain the apparent power information of each phase. The total apparent power is the sum of the apparent powers of all the phases. The different solutions available to process the total apparent power are discussed in the following paragraph. Figure 32 illustrates graphically the signal processing in each phase for the calculation of the Apparent Power in the ADE7754.
Irms
24 Apparent Power Signal - P
D1B71h
Figure 33 - Apparent Power Calculation Output range
Apparent Power Offset Calibration
Current RMS Signal - i(t) 0.5V / GAIN1
1CF68Ch 00h
24 MULTIPLIER 12
Vrms
24
AVAG
Voltage RMS Signal - v(t) 0.5V / GAIN2
1CF68Ch 00h
Each RMS measurement includes an offset compensation register to calibrate and eliminate the DC component in the RMS value -see Current RMS calculation and Voltage RMS calculation. The Voltage and Current RMS values are then multiplied together in the Apparent Power signal processing. As no additional offsets are created in the multiplication of the RMS values, there is no specific offset compensation in the Apparent Power signal processing. The offset compensation of the Apparent Power measurement in each phase is done by calibrating each individual RMS measurements.
TOTAL APPARENT POWER CALCULATION
Figure 32 - Apparent Power Signal Processing
The Apparent Power is calculated with the Current and Voltage RMS values obtained in the RMS blocks of the ADE7754. Shown in Figure 33 is the maximum code (Hexadecimal) output range of the Apparent Power signal for each phase. Note that the output range changes depending on the contents of the Apparent Power Gain registers but also on the contents of the Active Power Gain and Voltage Gain registers - see Current RMS calculation and Voltage RMS calculation. Only the effect of the Apparent Power Gain is shown on Figure 33. The minimum output range is given when the Apparent Power Gain register content is equal to 800h and the maximum range is given by writing 7FFh to the Apparent Power Gain register. This can be used to calibrate the Apparent Power (or Energy) calculation in the ADE7754 for each phase and also the Total Apparent Energy -see Total Apparent Power calculation.
The sum of the Apparent powers coming from each phase gives the total Apparent Power consumption. Different combinations of the three phases can be selected in the sum by setting bits 7-6 of the VAMode register (mnemonic VAMOD[1:0]). Figure 34 demonstrates the calculation of the total apparent power.
PHASE A* IA
AAPGAIN RMS
24
VArms
RMS AVAGAIN
VA
AVGAIN
PHASE B* IB
BAPGAIN
RMS
24
Total Apparent Power Signal
VB
BVGAIN
RMS
BVAGAIN
VArms +
S
+
2
VCrms PHASE C* IC
CAPGAIN
RMS
24
VCrms
RMS CVAGAIN
VC
CVGAIN
Figure 34- Total Apparent Power calculation
REV. PrG 01/03
-27-
PRELIMINARY TECHNICAL DATA ADE7754
The total apparent power calculated by the ADE7754 depends on the configuration of the VAMOD bits in the VAMode register. Each term of the formula can be disabled or enabled by the setting VASEL bits respectively to logic 0 or logic 1 in the VAMode register. The different configurations are described in Table IV. VAMOD 0d 1d 2d VASEL0 VArms x IArms VArmsxIArms VArms x IArms VASEL1 + VBrms x IBrms + VArms x IBrms VASEL2 + VCrms x ICrms + VCrms x ICrms
APPARENT ENERGY CALCULATION
The Apparent Energy is given as the integral of the Apparent Power.
Apparent Energy =
Apparent Power(t ) dt
(21)
+(VArms+VCrms)/2xIBrms+ VCrms x ICrms
The ADE7754 achieves the integration of the Apparent Power signal by continuously accumulating the Apparent Power signal in an internal non-readable 49-bit register. The Apparent Energy register (VAENERGY[23:0]) represents the upper 24 bits of this internal register. This discrete time accumulation or summation is equivalent to integration in continuous time. Equation 22 below expresses the relationship
Table IV - Total Apparent Power calculation
Note: V Arms, V Brms, VCrms , I Arms, IBrms and ICrms represent respectively the voltage and current channels RMS values of the corresponding registers. For example, for VAMOD = 1, the exact formula that is used to process the Apparent Power is:
AVAG Total Apparent Power = VArms I Arms 1 + 212 +
Apparent Energy = Lim Apparent Power ( nT ) x T (22) T 0 n =0
Where n is the discrete time sample number and T is the sample period. The discrete time sample period (T) for the accumulation register in the ADE7754 is 1.2s (12/10MHz). Figure 35 shows a graphical representation of this discrete time integration or accumulation. The Apparent Power signal is continuously added to the internal register. This addition is a signed addition even if the Apparent Energy remains theoretically always positive.
VAENERGY[23:0] 23 0
(VArms
+ VCrms ) BVAG I Brms 1 + 2 212
CVAG + VCrms I Crms 1 + 212
Depending on the polyphase meter configuration, the appropriate formula should be chosen to calculate the Apparent Energy. The American ANSI C12.10 standard defines the different configurations of the meter. Table V describes which mode should be chosen in these different configurations. ANSI Meter Form 5S/13S 6S/14S 8S/15S 9S/16S 3-wire 4-wire 4-wire 4-wire Delta Wye Delta Wye VAMOD 0 1 2 0 VASEL 3 or 5 or 6 7 7 7
48
0
VADIV
TOTAL APPARENT POWER
T +
48
0
+
Apparent Power Signal - P
T
TOTAL APPARENT POWER ARE ACCUMULATED (INTEGRATED) IN THE APPARENT ENERGY REGISTER
D1B71h
Table V - Meter form configuration
00000h
Different gain calibration parameters are offered in the ADE7754 to cover the calibration of the meter in different configurations. These registers, APGAIN, VGAIN and VAGAIN, have different purposes in the signal processing of the ADE7754. APGAIN registers affect the Apparent power calculation but should be used only for Active Power calibration. VAGAIN registers are used to calibrate the Apparent Power calculation. VGAIN registers have the same effect as VAGAIN registers when VAMOD=0 or 2. They should be left at their default value in these modes. VGAIN registers should be used to compensate gain mismatches between channels in VAMOD=1. As mentioned before, the offset compensation of the Phase Apparent Power calculation is done in each individual RMS measurement signal processing -see Apparent Power Offset compensation.
time (nT)
Figure 35-ADE7754 Apparent Energy calculation
The upper 49-bit of the internal register are divided by VADIV. If the value in the VADIV register is equal to 0 then the internal active Energy register is divided by 1. VADIV is an 8-bit unsigned register. The upper 24-bit are then written in the 24-bit Apparent Energy register (VAENERGY[23:0]). RVAENERGY register (24 bits long) is provided to read the Apparent Energy. This register is reset to zero after a read operation.
-28-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Figure 36 shows this Apparent Energy accumulation for full scale signals (sinusoidal) on the analog inputs. The three curves displayed, illustrate the minimum time it takes the energy register to roll-over when the individual VA Gain registers contents are all equal to 3FFh, 000h and 800h. The VA Gain registers are used to carry out an apparent power calibration in the ADE7754. As shown, the fastest integration time will occur when the VA Gain registers are set to maximum full scale, i.e., 3FFh.
AVAG = BVAG = CVAG = 3FFh
FFFF,FFFF,FFFFh before it overflows, the integration time under these conditions with VADIV=0 is calculated as follows:
Time = FFFF , FFFF , FFFFh x 1.2 s = 131 s = 2 min 11 s 3 x D1B71h
When VADIV is set to a value different from 0, the integration time varies as shown on Equation 23. Time = TimeWDIV=0 x VADIV (23)
VAENERGY[23:0]
7F,FFFFh
AVAG = BVAG = CVAG = 000h AVAG = BVAG = CVAG = 800h
LINE APPARENT ENERGY ACCUMULATION
3F,FFFFh
00,0000h
65.5
131
196.5
262
327.5
393
40,0000h
The ADE7754 is designed with a special Apparent Energy accumulation mode which simplifies the calibration process. By using the on-chip zero-crossing detection, the ADE7754 accumulates the Apparent Power signal in the LVAENERGY register for an integral number of half cycles, as shown in Figure 37. The line Apparent energy accumulation mode is always active. Each one of three phases zero-crossing detection can contribute to the accumulation of the half line cycles. Phase A, B and C zero crossings are taken into account when counting the number of half line cycle by setting to logic one bits 4-6 of the MMODE register. Selecting phases for the Zero crossing counting has also the effect of enabling the Zero-crossing detection, Zero-crossing Time-Out and Period Measurement for the corresponding phase as described in the Zero-crossing Detection paragraph. The number of half line cycles is specified in the LINCYC register. LINCYC is an unsigned 16-bit register. The ADE7754 can accumulate Apparent Power for up to 65535 combined half cycles. Because the Apparent Power is integrated on the same integral number of line cycles as the Line Active Energy register, these two values can be compared easily - see Energy Scaling. The active and apparent Energy are calculated more accurately because of this precise timing control and provide all the information needed for Reactive Power and Power Factor calculation. At the end of an energy calibration cycle the LINCYC flag in the Interrupt Status register is set. If the LINCYC mask bit in the Interrupt Mask register is enabled, the IRQ output will also go active low. Thus the IRQ line can also be used to signal the end of a calibration.
80,0000h
Time (seconds)
Figure 36 - Energy register roll-over time for full-scale power (Minimum & Maximum Power Gain)
Note that the Apparent Energy register contents roll-over to full-scale negative (80,0000h) and continue increasing in value when the power or energy flow is positive - see Figure 36. By using the Interrupt Enable register, the ADE7754 can be configured to issue an interrupt (IRQ) when the Apparent Energy register is half full (positive or negative).
Integration times under steady load
As mentioned in the last section, the discrete time sample period (T) for the accumulation register is 1.2s (12/ CLKIN). With full-scale sinusoidal signals on the analog inputs and the VA Gain registers set to 000h, the average word value from each Apparent Power stage is D1B71h - see Apparent Power output range. The maximum value which can be stored in the Apparent Energy register before it over-flows is 223 -1or FF,FFFFh. As the average word value is added to the internal register which can store 2 48 - 1 or
ACCUMULATE APPARENT POWER DURING LINCYC ZERO-CROSSINGS Apparent Power Phase A + Apparent Power Phase B MMODE register bit 4 ZEROCROSS DETECT MMODE register bit 5 ZEROCROSS DETECT LPF1 FROM VC ADC ZEROCROSS DETECT MMODE register bit 6 CALIBRATION CONTROL Apparent Power Phase C +
LVAENERGY[23:0] 23 0
+
48
+
0
48
0
LPF1 FROM VA ADC
VADIV
LPF1 FROM VB ADC
LINCYC[15:0]
Figure 37 - ADE7754 Apparent Energy Calibration
REV. PrG 01/03
-29-
PRELIMINARY TECHNICAL DATA ADE7754
The total apparent power calculated by the ADE7754 in the Line accumulation mode depends on the configuration of the VAMOD bits in the VAMode register. Each term of the formula can be disabled or enabled by the LVASEL bits of the VAMode register. The different configurations are described in Table VI. VAMOD 0d 1d 2d VASEL0 VASEL1 VASEL2 + VCrms x ICrms + VCrms x ICrms
CHECK SUM REGISTER
VArms x IArms + VBrms x IBrms VArmsxIArms VArms x IArms + VArms x IBrms
+(VArms+VCrms)/2xIBrms + VCrms x ICrms
Table VI - Total Line Apparent Energy calculation
The ADE7754 has a check sum register (CHECKSUM[5:0]) to ensure the data bits received in the last serial read operation are not corrupted. The 6-bit Checksum register is reset before the first bit (MSB of the register to be read) is put on the DOUT pin. During a serial read operation, when each data bit becomes available on the rising edge of SCLK, the bit will be added to the Checksum register. In the end of the serial read operation, the content of the Checksum register will equal to the sum of all ones in the register previously read. Using the Checksum register, the user can determine if an error has occurred during the last read operation. Note that a read to the Checksum register will also generate a checksum of the Checksum register itself.
CONTENT OF REGISTER (n-bytes) DOUT
The Line Apparent Energy accumulation uses the same signal path as the Apparent Energy accumulation. The LSB size of these two registers is equivalent. The ADE7754 accumulates the Total Reactive Power signal in the LAENERGY register. This mode is selected by setting to logic one bit5 of the WAVMode register (Add. 0Ch). When this bit is set the accumulation of the Active Energy over half line cycles in the LAENERGY register is disabled and is done instead in the LVAENERGY register. In this mode, the accumulation of the Apparent Energy over half line cycles in the LVAENERGY is no-longer available - see Figure 31. As the LVAENERGY register is an unsigned value, the accumulation of the active energy in the LVAENERGY register is unsigned. In this mode (reactive energy), the selection of the phases accumulated in the LAENERGY and LVAENERGY registers is done by the LWATSEL selection bits of the WATMode register.
ENERGIES SCALING
CHECKSUM REGISTER ADDR: 3EH
Figure 38 - Checksum register for Serial Interface Read
The ADE7754 provides measurements of the Active, Reactive and Apparent energies. These measurements do not have the same scaling and cannot be compared directly to each others. When measuring the different energies with the ADE7754 with 50Hz signals at different power factor, the ratio between the energies is: PF=1 Active Wh Energy Reactive Energy Apparent Wh / 3.657 Energy Wh / 3.657 Wh / 3.657 0 PF=0.707 Wh x 0.707 Wh x 0.707 / 9.546 PF=0 0 Wh / 9.546
-30-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
ADE7754 SERIAL INTERFACE
ADE7754 has a built-in SPI interface. The Serial Interface of the ADE7754 is made of four signals SCLK, DIN, DOUT and CS. The serial clock for a data transfer is applied at the SCLK logic input. This logic input has a Schmidttrigger input structure, which allows slow rising (and falling) clock edges to be used. All data transfer operations are synchronized to the serial clock. Data is shifted into the ADE7754 at the DIN logic input on the falling edge of SCLK. Data is shifted out of the ADE7754 at the DOUT logic output on a rising edge of SCLK. The CS logic input is the chip select input. This input is used when multiple devices share the serial bus. A falling edge on CS also resets the serial interface and places the ADE7754 in communications mode. The CS input should be driven low for the entire data transfer operation. Bringing CS high during a data transfer operation will abort the transfer and place the serial bus in a high impedance state. The CS logic input may be tied low if the ADE7754 is the only device on the serial bus. However with CS tied low, all initiated data transfer operations must be fully completed, i.e., the LSB of each register must be transferred as there is no other way of bringing the ADE7754 back into communications mode without resetting the entire device, i.e., setting the RESET pin logic low. All the ADE7754 functionality is accessible via several onchip registers - see Figure 39. The contents of these registers can be updated or read using the on-chip serial interface. After power-on or toggling the RESET pin low or a falling edge on CS, the ADE7754 is placed in communications mode. In communications mode the ADE7754 expects the first communication to be a write to the internal Communications register. The data written to the Communications register contains the address and specifies the next data transfer to be a read or a write command. Therefore all data transfer operations with the ADE7754, whether a read or a write, must begin with a write to the Communications register.
DIN COMMUNICATIONS REGISTER
IN OUT IN OUT IN OUT
struction followed must be a write to the Communications register.
CS SCLK DIN DOUT COMMUNICATIONS REGISTER WRITE 0 0 ADDRESS MULTIBYTE READ DATA
Figure 40 - Reading data from the ADE7754 via the serial interface
CS SCLK COMMUNICATIONS REGISTER WRITE DIN 10 ADDRESS MULTIBYTE WRITE DATA
Figure 41 - Writing data to the ADE7754 via the serial interface A data transfer is completed when the LSB of the ADE7754 register being addressed (for a write or a read) is transferred to or from the ADE7754.
ADE7754 Serial Write Operation
DOUT
REGISTER # 1
REGISTER # 2
REGISTER # 3
REGISTER # n-1
IN OUT IN OUT
REGISTER # n
Figure 39- Addressing ADE7754 Registers via the Communications Register
The Communications register is an eight bit write only register. The MSB determines whether the next data transfer operation is a read or a write. The 6 LSBs contain the address of the register to be accessed. See ADE7754 Communications Register for a more detailed description. Figure 40 and Figure 41 show the data transfer sequences for a read and write operation respectively. On completion of a data transfer (read or write) the ADE7754 once again enters communications mode, i.e. the next inREV. PrG 01/03
The serial write sequence takes place as follows: with the ADE7754 in communications mode and the CS input logic low, a write to the communications register first takes place. The MSB of this byte transfer must be set to 1, indicating that the next data transfer operation is a write to the register. The six LSBs of this byte contain the address of the register to be written to. The ADE7754 starts shifting in the register data on the next falling edge of SCLK. All remaining bits of register data are shifted in on the falling edge of subsequent SCLK pulses - see Figure 42. As explained earlier the data write is initiated by a write to the Communications register followed by the data. During a data write operation to the ADE7754, data is transferred to all onchip registers one byte at a time. After a byte is transferred into the serial port, there is a finite time duration before the content in the serial port buffer is transferred to one of the ADE7754 on-chip registers. Although another byte transfer to the serial port can start while the previous byte is being transferred to the destination register, this second byte transfer should not finish until at least TBD after the end of the previous byte transfer. This functionality is expressed in the timing specification t6 - see Figure 42. If a write operation is aborted during a byte transfer (CS brought high), then that byte will not be written to the destination register. Destination registers may be up to 3 bytes wide - see ADE7754 Register Descriptions. Hence the first byte shifted into the serial port at DIN is transferred to the MSB (Most significant Byte) of the destination register. If the destination register is 12 bits wide, for example, a two-byte data transfer must take place. The data is always assumed to be right justified, therefore in this case, the four MSBs of the first byte would be ignored and the 4 LSBs of the first byte written to the ADE7754 would be the 4MSBs of the 12-bit word. Figure 43 illustrates this example.
REGISTER ADDRESS DECODE
-31-
PRELIMINARY TECHNICAL DATA ADE7754
t8
CS
t1 t2 t3 t7 t4 t5 DB7 DB0 DB7 DB0 t7 t6
SCLK DIN
1 0 A5 A4 A3 A2 A1 A0
Command Byte
Most Significant Byte
Least Significant Byte
Figure 42- Serial Interface Write Timing Diagram
SCLK DIN
X X X X
DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Most Significant Byte
Least Significant Byte
Figure 43--12 bit Serial Write Operation
ADE7754 Serial Read Operation
During a data read operation from the ADE7754 data is shifted out at the DOUT logic output on the rising edge of SCLK. As was the case with the data write operation, a data read must be preceded with a write to the Communications register. With the ADE7754 in communications mode and CS logic low an eight bit write to the Communications register first takes place. The MSB of this byte transfer must be a 0, indicating that the next data transfer operation is a read. The six LSBs of this byte contain the address of the register which is to be read. The ADE7754 starts shifting out of the register data on the next rising edge of SCLK - see Figure 44. At this point the DOUT logic output switches from high impedance state and starts driving the data bus. All remaining bits of register data are shifted out on subsequent SCLK rising edges. The serial interface enters communications mode
again as soon as the read has been completed. The DOUT logic output enters a high impedance state on the falling edge of the last SCLK pulse. The read operation may be aborted by bringing the CS logic input high before the data transfer is completed. The DOUT output enters a high impedance state on the rising edge of CS. When an ADE7754 register is addressed for a read operation, the entire contents of that register are transferred to the Serial port. This allows the ADE7754 to modify its on-chip registers without the risk of corrupting data during a multi byte transfer. Note: when a read operation follows a write operation, the read command (i.e., write to communications register) should not happen for at least TBD after the end of the write operation. If the read command is sent within TBD of the write operation, the last byte of the write operation may be lost. The is given as timing specification t15.
CS
t1 t9 t10 t14
SCLK DIN DOUT
Command Byte
0
0
A5 A4 A3 A2 A1 A0
t11 DB7 t12 DB0 DB7 t13
DB0
Most Significant Byte
Least Significant Byte
Figure 44- Serial Interface Read Timing Diagram
-32-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
ADE7754 INTERRUPTS
ADE7754 Interrupts are managed through the Interrupt Status register (STATUS[15:0], Address 10h) and the Interrupt Mask register (MASK[15:0], Address 0Fh). When an interrupt event occurs in the ADE7754, the corresponding flag in the Interrupt Status register is set to a logic one - see ADE7754 Interrupt Status register. If the mask bit for this interrupt in the Interrupt Mask register is logic one, then the IRQ logic output goes active low. The flag bits in the Interrupt Status register are set irrespective of the state of the mask bits. In order to determine the source of the interrupt, the system master (MCU) should perform a read from the Reset Interrupt Status register with reset. This is achieved by carrying out a read from address 11h. The IRQ output will go logic high on completion of the Interrupt Status register read command--see Interrupt timing. When carrying out a read with reset the ADE7754 is designed to ensure that no interrupt events are missed. If an interrupt event occurs just as the Interrupt Status register is being read, the event will not be lost and the IRQ logic output is guaranteed to go high for the duration of the Interrupt Status register data transfer before going logic low again to indicate the pending interrupt.
Using the ADE7754 Interrupts with an MCU
using the global interrupt mask bit. At this point the MCU external interrupt flag can be cleared in order to capture interrupt events which occur during the current ISR. When the MCU interrupt flag is cleared, a read from the Reset Interrupt Status register with reset is carried out. This will cause the IRQ line to be reset logic high (t2)--see Interrupt timing. The Reset Interrupt Status register contents are used to determine the source of the interrupt(s) and hence the appropriate action to be taken. If a subsequent interrupt event occurs during the ISR (t3), that event will be recorded by the MCU external interrupt flag being set again. On returning from the ISR, the global interrupt mask bit will be cleared (same instruction cycle) and the external interrupt flag will cause the MCU to jump to its ISR once again. This will ensure that the MCU does not miss any external interrupts.
Interrupt timing
Shown in Figure 45 is a timing diagram which illustrates a suggested implementation of ADE7754 interrupt management using an MCU. At time t1 the IRQ line will go active low indicating that one or more interrupt events have occurred in the ADE7754. The IRQ logic output should be tied to a negative edge triggered external interrupt on the MCU. On detection of the negative edge, the MCU should be configured to start executing its Interrupt Service Routine (ISR). On entering the ISR, all interrupts should be disabled
The ADE7754 Serial Interface section should be reviewed first before reviewing the interrupt timing. As previously described, when the IRQ output goes low the MCU ISR must read the Interrupt Status register in order to determine the source of the interrupt. When reading the Interrupt Status register contents, the IRQ output is set high on the last falling edge of SCLK of the first byte transfer (read Interrupt Status register command). The IRQ output is held high until the last bit of the next 8-bit transfer is shifted out (Interrupt Status register contents). See Figure 46. If an interrupt is pending at this time, the IRQ output will go low again. If no interrupt is pending the IRQ output will remain high.
MCU int. flag set
t1 IRQ Program Sequence
Jump to ISR Global int. Clear MCU Mask int. flag
t2
t3
Read Status with Reset (11h)
ISR Return ISR Action ( Based on Status contents) Global int. Mask Reset
Jump to ISR
Figure 45- ADE7754 interrupt management
CS
t1 t9
SCLK DIN DOUT
Read Status Register Command
0
0
0
1
0
0
0
1
t11 DB15 t12 DB8 DB7
DB0
Status Register Contents
IRQ
Figure 46- ADE7754 interrupt timing
REV. PrG 01/03
-33-
PRELIMINARY TECHNICAL DATA ADE7754
ACCESSING THE ADE7754 ON-CHIP REGISTERS
All ADE7754 functionality is accessed via the on-chip registers. Each register is accessed by first writing to the communications register and then transferring the register data. For a full description of the serial interface protocol, see Serial Interface section of this data sheet.
Communications Register
The Communications register is an eight bit, write-only register which controls the serial data transfer between the ADE7754 and the host processor. All data transfer operations must begin with a write to the communications register. The data written to the communications register determines whether the next operation is a read or a write and which register is being accessed. Table VII below outlines the bit designations for the Communications register.
Table VII : Communications Register
Bit Location 0 to 5 6 7
Bit Mnemonic A0 to A5 RESERVED W/ R
Description The six LSBs of the Communications register specify the register for the data transfer operation. Table VIII lists the address of each ADE7754 on-chip register. This bit is unused and should be set to zero. When this bit is a logic one the data transfer operation immediately following the write to the Communications register will be interpreted as a write to the ADE7754. When this bit is a logic zero the data transfer operation immediately following the write to the Communications register will be interpreted as a read operation.
DB7 W/R
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
A5
A4
A3
A2
A1
A0
-34-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Table VIII. ADE7754 REGISTER LIST
Address [A5:A0] Name 00h 01h Reserved AENERGY
R/W* R
Length 24
Default Value 0
Description Reserved. Active Energy register. Active power is accumulated over time in an internal register. The AENERGY register is a read only register that reads this internal register and can hold a minimum of 88 seconds of active energy information with full-scale analog inputs before it overflows - See Energy Calculation. Bit 7 to 3 of the WATMODE register determine how the Active energy is processed from the six Analog inputs - see Table XIV. Same as the AENERGY register, except that the internal register is reset to zero following a read operation. Line Accumulation Active Energy register. The instantaneous active power is accumulated in this read-only register over the LINCYC number of half line cycles. Bit 2 to 0 of the WATMODE register determines, how the Line Accumulation Active energy is processed from the six Analog inputs - see Table XIV. VA Energy register. Apparent power is accumulated over time in this read-only register. Bit 7 to 3 of the VAMODE register determines, how the Apparent energy is processed from the six Analog inputs - see Table XV. Same as the VAENERGY register except that the register is reset to zero following a read operation. Apparent Energy register. The instantaneous Apparent power is accumulated in this read-only register over the LINCYC number of half line cycles. Bit 2 to 0 of the VAMODE register determines how the Apparent energy is processed from the six Analog inputs - see Table XV. Period of the line input estimated by Zero-crossing processing. Data bits 0 to 1 and 4 to 6 of the MMODE register determines the voltage channel used for Period calculation - see table XII. Temperature register. This register contains the result of the latest temperature conversion. Please refer to Temperature Measurement section on this datasheet for details on how to interpret the content of this register. Waveform register. This register contains the digitized waveform of one of the six analog inputs. The source is selected by data bits 0 to 2 in the WAVMode register - see Table XIII. Operational Mode Register. This register defines the general configuration of the ADE7754. See Table IX. Measurement Mode register. This register defines the channel used for Period and Peak detection measurements. See Table XII. Waveform Mode register. This register defines the channel and the sampling frequency used in Waveform sampling mode. See Table XIII. This register configures the formula applied for the Active Energy and Line active energy measurements. See Table XIV. This register configures the formula applied for the Apparent Energy and Line Apparent Energy measurements. See Table XV. IRQ Mask register. It determines if an interrupt event will generate an active-low output at IRQ pin - see Table XVI. IRQ Status register. This register contains information regarding the source of ADE7754 interrupts - see Table XVII. Same as the STATUS register. Except that its contents are reset to zero (all flags cleared) after a read operation.
02h 03h
RAENERGY LAENERGY
R R
24 24
0 0
04h
VAENERGY
R
24
0
05h 06h
RVAENERGY R LVAENERGY R
24 24
0 0
07h
PERIOD
R
15
0
08h
TEMP
R
8
0
09h
WFORM
R
24
0
0Ah 0Bh 0Ch
OPMODE MMODE WAVMODE
R/W R/W R/W
8 8 8
4 70h 0
0Dh 0Eh 0Fh 10h 11h
WATMODE VAMODE MASK STATUS RSTATUS
R/W R/W R/W R R
8 8 16 16 16
3Fh 3Fh 0 0 0
REV. PrG 01/03
-35-
PRELIMINARY TECHNICAL DATA ADE7754
Address [A5:A0] Name 12h ZXTOUT R/W* R/W Length 16 Default Value FFFFh Description Zero Cross Time Out register. If no zero crossing is detected within a time period specified by this register the interrupt request line (IRQ) will go active low for the corresponding line voltage. The maximum time-out period is 2.3 seconds - see Zero Crossing Detection. Line Cycle register. The content of this register sets the number of half line cycles while the active energy and the apparent energy are accumulated in the LAENERGY and LVAENERGY registers - See Energy Calibration. Sag Line Cycle register. This register specifies the number of consecutive half-line cycles where voltage channel input falls below a threshold level. This register is common to the three line voltage SAG detection. The detection threshold is specified by SAGLVL register - See Voltage SAG Detection. SAG Voltage Level. This register specifies the detection threshold for SAG event. This register is common to the three line voltage SAG detection. See the description of SAGCYC register for details. Voltage Peak Level. This register sets the level of the voltage peak detection. If the selected voltage phase exceeds this level, the PKV flag in the status register is set - See Table XII. Current Peak Level. This register sets the level of the current peak detection. If the selected current phase exceeds this level, the PKI flag in the status register is set - See Table XII. PGA Gain register. This register is used to adjust the gain selection for the PGA in current and voltage channels - See Analog Inputs and Table X. This register is also used to configuration of the active energy accumulation - No-load threshold and sum of absolute values. Phase A Active Power Gain register. This register calculation can be calibrated by writing to this register. The calibration range is 50% of the nominal full scale active power. The resolution of the gain adjust is 0.0244% / LSB. Phase B Active Power Gain Phase C Active Power Gain VA Gain register. This register calculation can be calibrated by writing this register. The calibration range is 50% of the nominal full scale real power. The resolution of the gain adjust is 0.02444% / LSB. Phase B VA Gain Phase C VA Gain Phase A Phase Calibration Register Phase B Phase Calibration Register Phase C Phase Calibration Register Phase A Power Offset Calibration Register Phase B Power Offset Calibration Register Phase C Power Offset Calibration Register CF Scaling Numerator register. The content of this register is used in the numerator of CF output scaling. CF Scaling Denominator register. The content of this register is used in the denominator of CF output scaling. Active Energy register divider Apparent Energy register divider Phase A Current channel RMS register. The register contains the RMS component of one input of the current channel. The source is selected by data bits in the mode register. Phase B Current channel RMS register. Phase C Current channel RMS register.
13h
LINCYC
R/W
16
FFFFh
14h
SAGCYC
R/W
8
FFh
15h
SAGLVL
R/W
8
0
16h
VPEAK
R/W
8
FFh
17h
IPEAK
R/W
8
FFh
18h
GAIN
R/W
8
0
19h
AWG
R/W
12
0
1Ah 1Bh 1Ch
BWG CWG AVAG
R/W R/W R/W
12 12 12
0 0 0
1Dh 1Eh 1Fh 20h 21h 22h 23h 24h 25h 26h 27h 28h 29h
BVAG CVAG APHCAL BPHCAL CPHCAL AAPOS BAPOS CAPOS CFNUM CFDEN WDIV VADIV AIRMS
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R
12 12 5 5 5 12 12 12 12 12 8 8 24
0 0 0 0 0 0 0 0 0h 3Fh 0 0 0
2Ah 2Bh
BIRMS CIRMS
R R
24 24
0 0
-36-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Address [A5:A0] Name 2Ch 2Dh 2Eh 2Fh 30h 31h 32h 33h 34h 35h AVRMS BVRMS CVRMS AIRMSOS BIRMSOS CIRMSOS AVRMSOS BVRMSOS CVRMSOS AAPGAIN R/W* R R R R/W R/W R/W R/W R/W R/W R/W Length 24 24 24 12 12 12 12 12 12 12 Default Value 0 0 0 0 0 0 0 0 0 0 Description Phase A Voltage channel RMS register. Phase B Voltage channel RMS register. Phase C Voltage channel RMS register. Phase A Current RMS offset correction register. Phase B Current RMS offset correction register. Phase C Current RMS offset correction register. Phase A Voltage RMS offset correction register. Phase B Voltage RMS offset correction register. Phase C Voltage RMS offset correction register. Phase A Active Power Gain Adjust. The Active Power accumulation of the phase A can be calibrated by writing to this register. The calibration range is 50% of the nominal full scale of the Active Power. The resolution of the gain is 0.0244% / LSB - see Current channel Gain Adjust Phase B Active Power Gain Adjust Phase C Active Power Gain Adjust Phase A voltage RMS gain. The Apparent Power accumulation of the phase A can be calibrated by writing to this register. The calibration range is 50% of the nominal full scale of the Apparent Power. The resolution of the gain is 0.0244% / LSB - see Voltage RMS Gain Adjust Phase B voltage RMS gain Phase C voltage RMS gain Reserved CHKSUM R 8 Check sum register. The content of this register represents the sum of all ones of the latest register read from the SPI port. Version of the Die
36h 37h 38h
BAPGAIN CAPGAIN AVGAIN
R/W R/W R/W
12 12 12
0 0 0
39h 3Ah 3Bh 3Dh 3Eh
BVGAIN CVGAIN
R/W R/W
12 12
0 0
3Fh
VERSION
R
8
1
*R/W: Read/Write capability of the register. R: Read only register. R/W: Register that can be both read and written.
REV. PrG 01/03
-37-
PRELIMINARY TECHNICAL DATA ADE7754
Operational Mode Register (0Ah)
The general configuration of the ADE7754 is defined by writing to the OPMODE register. Table IX below summarizes the functionality of each bit in the OPMODE register .
Table IX OPMODE Register
Bit Location 0 1 2 3-5
Bit Mnemonic DISHPF DISLPF DISCF DISMOD
Default Value Description 0 0 1 0 The HPF (High Pass Filter) in all current channel inputs are disabled when this bit is set. The LPFs (Low Pass Filter) in all current channel inputs are disabled when this bit is set. The Frequency output CF is disabled when this bit is set. By setting these bits, ADE7754's A/D converters can be turned off. In normal operation, these bits should be left at logic zero. DISMOD2 DISMOD1 DISMOD0 0 1 0 0 0 0 Normal operation Normal operation, by setting this bit to logic 1 the analog inputs to current channel are connected to the ADC for voltage channel and the analog inputs to voltage channel are connected to the ADC for current channel Current channel A/D converters OFF Current channel A/D converters OFF + chan nels swapped Voltage Channel A/D converters OFF Voltage Channel A/D converters OFF + chan nels swapped ADE7754 in Sleep Mode ADE7754 powered down
0 1 0 1 0 1 6 7 SWRST 0
0 0 1 1 1 1
1 1 0 0 1 1
Software chip reset. A data transfer to the ADE7754 should not take place for at least 18s after a software reset. This is intended for factory testing only and should be left at zero.
RESERVED -
-38-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Gain Register (18h)
The Gain of the analog inputs and the mode of accumulation of the active energies in the ADE7754 are defined by writing to the GAIN register. Table X below summarizes the functionality of each bit in the GAIN register .
Table X GAIN Register
Bit Location 0-1
Bit Mnemonic PGA1
Default Value 0
Description These bits are used to select the Gain of the current channels inputs. bit 1 0 0 1 0 bit 0 0 1 0 0 PGA1=1 PGA1=2 PGA1=4 Reserved
2
ABS
0
The sum of the absolute active energies is done in the ANERGY and LAENERGY registers when this bit is set to logic one. The regular sum is done when this bit is set to logic zero - default mode. The active energy of each phase is not accumulated in the total active energy registers if the instantaneous active power is lower than the no-load threshold when this bit is set to logic zero, this mode is selected by default. This is intended for factory testing only and should be left at zero. These bits are used to select the Gain of the voltage channels inputs. bit 6 0 0 1 0 bit 5 0 1 0 0 PGA2=1 PGA2=2 PGA2=4 Reserved
3
NOLOAD
0
4 5-6
RESERVED PGA2 0
7
RESERVED -
This is intended for factory testing only and should be left at zero.
CFNUM Register (25h)
The CF scaling numerator and the sign of the active energy per phase are defined by writing/reading to the CFNUM register. Table XI below summarizes the functionality of each bit in the CFNUM register .
Table XI CFNUM Register
Bit Location 0-Bh Ch
Bit Mnemonic CFN NEGA
Default Value 0 0
Description CF Scaling Numerator register. The content of this register is used in the numerator of CF output scaling. The sign of the phase A instantaneous active power is available in this bit. Logic zero and Logic one correspond to Positive and negative active power respectively. The functionality of this bit is enabled by setting bit 5 of the WATMode register to logic one. When disabled NEGA is equal to its default value. The sign of the phase B instantaneous active power is available in this bit. Logic zero and Logic one correspond to Positive and negative active power respectively. The functionality of this bit is enabled by setting bit 4 of the WATMode register to logic one. When disabled NEGB is equal to its default value. The sign of the phase C instantaneous active power is available in this bit. Logic zero and Logic one correspond to Positive and negative active power respectively. The functionality of this bit is enabled by setting bit 3 of the WATMode register to logic one. When disabled NEGC is equal to its default value.
Dh
NEGB
0
Eh
NEGC
0
Fh
RESERVED
REV. PrG 01/03
-39-
PRELIMINARY TECHNICAL DATA ADE7754
Measurement Mode Register (0Bh)
The configuration of the period and Peak measurements made by the ADE7754 are defined by writing to the MMODE register. Table XII below summarizes the functionality of each bit in the MMODE register .
Table XII MMODE Register
Bit Location 0-1
Bit Mnemonic PERDSEL
Default Value Description 0 These bits are used to select the source of the measurement of the voltage line period. bit 1 0 0 1 1 bit 0 0 1 0 1 Source Phase A Phase B Phase C Reserved
2-3
PEAKSEL
0
These bits select the line voltage and current phase used for the PEAK detection. If the selected line voltage is above the level defined in the PKVLVL register, the PKV flag in the Interrupt Status register is set. If the selected current input is above the level defined in the PKILVL register, the PKI flag in the Interrupt Status register is set. bit 3 0 0 1 1 bit 2 0 1 0 1 Source Phase A Phase B Phase C Reserved
4-6
ZXSEL
7
These bits select the phases used for counting the number of zero crossing in the Line Active and Apparent accumulation modes as well as enabling these phases for the ZeroCrossing Time out detection, Zero-crossing, Period measurement and SAG detection. bit 4, 5 and 6 select Phase A, Phase B and Phase C respectively. Reserved
7
Waveform Mode Register (0Ch) The Waveform sampling mode of the ADE7754 is defined by writing to the WAVMODE register. Table XIII below summarizes the functionality of each bit in the WAVMODE register .
Table XIII WAVMODE Register
Bit Location 0-2
Bit Mnemonic WAVSEL
Default Value Description 0 These bits are used to select the source of the Waveform sample bit 2 0 0 0 0 1 1 1 bit 1 0 0 1 1 0 0 1 bit 3 0 1 0 1 bit 0 0 1 0 1 0 1 0 or 1 Update rate 26.0ksps (CLKIN/3/128) 13.0ksps (CLKIN/3/256) 6.5ksps (CLKIN/3/512) 3.3ksps (CLKIN/3/1024) Source Voltage Phase A Voltage Phase B Voltage Phase C Current Phase A Current Phase B Current Phase C Reserved
3-4
DTRT
0
These bits are used to select the Waveform sampling update rate bit 4 0 0 1 1
5
LVARSEL
0
This bit is used to enable the accumulation of the Line VAR energy into the LAENERGY register and of the Line Active Energy into the LVAENERGY register. -40- REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Watt Mode Register (0Dh)
The phases involved in the Active Energy measurement of the ADE7754 are defined by writing to the WATMODE register. Table XIV below summarizes the functionality of each bit in the WATMODE register .
Table XIV WATMODE Register
Bit Bit Location Mnemonic 0-2
Default Value Description These bits are used to select separately each part of the formula, depending on the Line Active Energy measurement method. The behavior of these bits is the same as WATSEL bits. Bit 2 selects the first term of the formula and so on. These bits are used to select separately each part of the formula, depending on the Active Energy measurement method. These bits are also used to enable the Negative power detection available in bits 12-14 of CFNUM register - see Table XI. Setting bit 5 to logic one selects the first term of the formula (VAxIA or VAx(IA-IB)). Setting bit 4 to logic one selects the second term of the formula (VBxIB or 0 depending on WATMOD configuration). Setting bit 3 to logic one selects the last term of the formula (VCxIC or VCx(IC-IB)). Any combination of these bits are possible to address calibration and operational needs. These bits are used to select the formula used for Active Energy calculation WATM1 0 0 1 1 WAVM0 0 1 0 1 Active Energy calculation VAxIA + VBxIB 0 0 + + + VCxIC VCx(IC-IB) VCxIC VAx(IA-IB) + VAx(IA-IB) + Reserved
LWATSEL 7
3-5
WATSEL
7
6-7
WATM
0
VA Mode Register (0Eh)
The phases involved in the Apparent Energy measurement of the ADE7754 are defined by writing to the VAMODE register. Table XV below summarizes the functionality of each bit in the VAMODE register .
Table XV VAMode Register
Bit Bit Location Mnemonic 0-2 LVASEL
Default Value 7
Description These bits are used to select separately each part of the formula, depending on the Line Apparent Energy measurement method. The behavior of these bits is the same as VASEL bits. Bit 2 selects the first term of the formula and so on. These bits are used to select separately each part of the formula, depending on the Apparent Energy measurement method. Setting bit 5 to logic one selects the first term of the formula (VA rms xIA rms ). Setting bit 4 to logic one selects the second term of the formula (VBrmsxIBrms or (VArms+VCrms)/2xIBrms or VArmsxIBrms depending on VAMOD configuration). Setting bit 3 to logic one selects the first term of the formula (VCrmsxICrms). Any combination of these bits are possible to address calibration and operational needs. These bits are used to select the formula used for Active Energy calculation VAMOD1 0 0 1 1 VAMOD0 0 1 0 1 Apparent Energy calculation VArmsxIArms+VBrmsxIBrms+VCrmsxICrms VArmsxIArms+(VArms+VCrms)/2xIBrms+VCrmsxICrms VArmsxIArms+VArmsxIBrms+VCrmsxICrm Reserved
3-5
VASEL
7
6-7
VAMOD
0
REV. PrG 01/03
-41-
PRELIMINARY TECHNICAL DATA ADE7754
Interrupt Mask Register (0Fh)
When an interrupt event occurs in the ADE7754, the IRQ logic output goes active low if the mask bit for this event is logic one in this register. The IRQ logic output is reset to its default collector open state when the RSTATUS register is read. The following describes the function of each bit in the Interrupt Mask Register.
Table XVI MASK Register
Bit Location 0 1 2 3 4 5 6 7 8 9 Ah Bh Ch Dh Eh Fh
Interrupt Flag AEHF SAGA SAGB SAGC ZXTOA ZXTOB ZXTOC ZXA ZXB ZXC
Default Value 0 0 0 0 0 0 0 0 0 0
Description Enables an interrupt when there is a 0 to 1 transition of the MSB of the AENERGY register (i.e. the AENERGY register is half-full) Enables an interrupt when there is a SAG on the line voltage of the Phase A Enables an interrupt when there is a SAG on the line voltage of the Phase B Enables an interrupt when there is a SAG on the line voltage of the Phase C Enables an interrupt when there is a zero crossing time out detection on Phase A Enables an interrupt when there is a zero crossing time out detection on Phase B Enables an interrupt when there is a zero crossing time out detection on Phase C Enables an interrupt when there is a rising zero crossing in voltage channel of the phase A --Zero Crossing Detection Enables an interrupt when there is a rising zero crossing in voltage channel of the phase B --Zero Crossing Detection Enables an interrupt when there is a rising zero crossing in voltage channel of the phase C --Zero Crossing Detection Enables an interrupt when the LAENERGY and LVAENERGY accumulations over LINCYC are finished Reserved Enables an interrupt when the voltage input selected in the MMODE register is above the value in the PKVLVL register Enables an interrupt when the current input selected in the MMODE register is above the value in the PKILVL register. Enables an interrupt when a data is present in the Waveform Register. Enables an interrupt when there is a 0 to 1 transition of the MSB of the VAENERGY register (i.e. the VAENERGY register is half-full)
LENERGY 0
PKV PKI WFSM VAEHF
0 0 0 0
INTERRUPT MASK REGISTER* F E D C B A 9 8 7 6 5 4 3 2 1 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
ADDR: 0Fh
VAEHF (Apparent Energy Register Half Full) WFMP (New Waveform Sample Ready) PKI (Current channel Peak detection) PKV (Voltage channel Peak detection) Reserved LENERGY (End of the LAENERGY and LVAENERGY accumulation) *Register contents show power on defaults
AEHF (Active Energy Register Half Full) SAG (SAG Event Detect) ZX (Zero Crossing Time out Detection) ZX (Zero Crossing Detection)
-42-
REV. PrG 01/03
PRELIMINARY TECHNICAL DATA ADE7754
Interrupt Status Register (10h) / Reset Interrupt Status Register (11h)
The Interrupt Status Register is used to determine the source of an interrupt event. When an interrupt event occurs in the ADE7754, the corresponding flag in the Interrupt Status Register is set logic high. The IRQ pin will go active low if the corresponding bit in the Interrupt Mask register is set logic high. When the MCU services the interrupt, it must first carry out a read from the Interrupt Status Register to determine the source of the interrupt. All the interrupts in the Interrupt Status Register stay at their logic high state after an event occurs. The state of the interrupt bit in the Interrupt Status register is reset to its default value once the Reset Interrupt Status register is read.
Table XVII STATUS Register
Bit Location 0 1 2 3 4 5 6 7 8 9 Ah Bh Ch Dh Eh Fh
Interrupt Flag AEHF SAGA SAGB SAGC ZXTOA ZXTOB ZXTOC ZXA ZXB ZXC
Default Value 0 0 0 0 0 0 0 0 0 0
Event Description Indicates that an interrupt was caused by the 0 to 1 transition of the MSB of the AENERGY register (i.e. the AENERGY register is half-full) Indicates that an interrupt was caused by a SAG on the line voltage of the Phase A Indicates that an interrupt was caused by a SAG on the line voltage of the Phase B Indicates that an interrupt was caused by a SAG on the line voltage of the Phase C Indicates that an interrupt was caused by a missing zero crossing on the line voltage of the Phase A Indicates that an interrupt was caused by a missing zero crossing on the line voltage of the Phase B Indicates that an interrupt was caused by a missing zero crossing on the line voltage of the Phase C Indicates a detection of rising zero crossing in the voltage channel of the phase A Indicates a detection of rising zero crossing in the voltage channel of the phase B Indicates a detection of rising zero crossing in the voltage channel of the phase C In Line energy accumulation, it indicates the end of an integration over an integer number of half line cycles (LINCYC) --see Energy Calibration Indicates that the ADE7754 has been reset Indicates that an interrupt was caused when the selected voltage input is above the value in the PKVLV register. Indicates that an interrupt was caused when the selected current input is above the value in the PKILV register. Indicates that new data is present in the Waveform Register. Indicates that an interrupt was caused by the 0 to 1 transition of the MSB of the VAENERGY register (i.e. the VAENERGY register is half-full)
LENERGY 0 RESET PKV PKI WFSM VAEHF 0 0 0 0 0
INTERRUPT STATUS REGISTER* F E D C B A 9 8 7 6 5 4 3 2 1 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
ADDR: 10h
VAEHF (Apparent Energy Register Half Full) WFMP (New Waveform Sample Ready) PKI (Current channel Peak detection) PKV (Voltage channel Peak detection) RESET LENERGY (End of the LAENERGY and LVAENERGY accumulation) *Register contents show power on defaults
AEHF (Active Energy Register Half Full) SAG (SAG Event Detect) ZX (Zero Crossing Time out Detection) ZX (Zero Crossing Detection)
REV. PrG 01/03
-43-
PRELIMINARY TECHNICAL DATA ADE7754
OUTLINE DIMENSIONS
shown in inches and (mm)
24-LEAD SOIC
(RW-24)
0.6141 (15.60) 0.5985 (15.20)
24
13
0.2992 (7.60) 0.2914 (7.40)
1 12
0.4193 (10.65) 0.3937 (10.00)
PIN 1
0.1043 (2.65) 0.0926 (2.35)
0.0291 (0.74) 0.0098 (0.25)
45
0.0118 (0.30) 0.0500 0.0040 (0.10) (1.27) BSC
8 0 0.0192 (0.49) SEATING 0.0125 (0.32) 0.0138 (0.35) PLANE 0.0091 (0.23)
0.0500 (1.27) 0.0157 (0.40)
-44-
REV. PrG 01/03


▲Up To Search▲   

 
Price & Availability of ADE7754

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X